@@ -9,9 +9,9 @@ function UpdateTestFrameworkVersion {
9
9
10
10
$filecontent = Get-Content ($FilePath )
11
11
attrib $FilePath - r
12
- $filecontent -replace $versionRegex1 , " nanoFramework.TestFramework.$NewVersion " | Out-File $FilePath - Encoding utf8
12
+ $filecontent -replace $versionRegex1 , " nanoFramework.TestFramework.$NewVersion " | Out-File $FilePath - Encoding utf8 - Force
13
13
$filecontent = Get-Content ($FilePath )
14
- $filecontent -replace $versionRegex2 , " id="" nanoFramework.TestFramework"" version="" $NewVersion " | Out-File $FilePath - Encoding utf8
14
+ $filecontent -replace $versionRegex2 , " id="" nanoFramework.TestFramework"" version="" $NewVersion " | Out-File $FilePath - Encoding utf8 - Force
15
15
}
16
16
17
17
function AddGeneratePathProperty {
@@ -24,14 +24,14 @@ function AddGeneratePathProperty {
24
24
25
25
$filecontent = Get-Content ($FilePath )
26
26
attrib $FilePath - r
27
- $filecontent -replace $versionRegex1 , " Include="" nanoFramework.TestFramework"" Version="" $NewVersion "" GeneratePathProperty="" true"" >" | Out-File $FilePath - Encoding utf8
27
+ $filecontent -replace $versionRegex1 , " Include="" nanoFramework.TestFramework"" Version="" $NewVersion "" GeneratePathProperty="" true"" >" | Out-File $FilePath - Encoding utf8 - Force
28
28
}
29
29
30
30
" Updating dependency at nf-Visual-Studio-extension" | Write-Host
31
31
32
32
# compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
33
33
# 'encoded token' is the Base64 of the string "nfbot:personal-token"
34
- $auth = " basic $ ( [System.Convert ]::ToBase64String([System.Text.Encoding ]::UTF8.GetBytes(" nfbot:$env: GITHUB_TOKEN " ))) "
34
+ $auth = " basic $ ( [System.Convert ]::ToBase64String([System.Text.Encoding ]::UTF8.GetBytes(" nfbot:$env: GITHUB_TOKEN " ))) "
35
35
36
36
# uncomment these for local debug
37
37
# [Environment]::SetEnvironmentVariable('NBGV_NuGetPackageVersion', '2.0.42', 'Process')
@@ -138,6 +138,10 @@ if ($repoStatus -ne "")
138
138
UpdateTestFrameworkVersion - NewVersion $packageTargetVersion - FilePath ' CSharp.TestApplication/CS.TestApplication-vs2022.vstemplate'
139
139
UpdateTestFrameworkVersion - NewVersion $packageTargetVersion - FilePath ' CSharp.TestApplication/NFUnitTest.nfproj'
140
140
141
+ # update remaining project refs
142
+ UpdateTestFrameworkVersion - NewVersion $packageTargetVersion - FilePath ' VisualStudio.Extension-2019/VisualStudio.Extension-vs2019.csproj'
143
+ UpdateTestFrameworkVersion - NewVersion $packageTargetVersion - FilePath ' VisualStudio.Extension-2022/VisualStudio.Extension-vs2022.csproj'
144
+
141
145
# create branch to perform updates
142
146
git branch $newBranchName
143
147
0 commit comments