@@ -9,9 +9,9 @@ function UpdateTestFrameworkVersion {
99
1010 $filecontent = Get-Content ($FilePath )
1111 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
1313 $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
1515}
1616
1717function AddGeneratePathProperty {
@@ -24,14 +24,14 @@ function AddGeneratePathProperty {
2424
2525 $filecontent = Get-Content ($FilePath )
2626 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
2828}
2929
3030" Updating dependency at nf-Visual-Studio-extension" | Write-Host
3131
3232# compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
3333# '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 " ))) "
3535
3636# uncomment these for local debug
3737# [Environment]::SetEnvironmentVariable('NBGV_NuGetPackageVersion', '2.0.42', 'Process')
@@ -138,6 +138,10 @@ if ($repoStatus -ne "")
138138 UpdateTestFrameworkVersion - NewVersion $packageTargetVersion - FilePath ' CSharp.TestApplication/CS.TestApplication-vs2022.vstemplate'
139139 UpdateTestFrameworkVersion - NewVersion $packageTargetVersion - FilePath ' CSharp.TestApplication/NFUnitTest.nfproj'
140140
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+
141145 # create branch to perform updates
142146 git branch $newBranchName
143147
0 commit comments