Skip to content

Commit 2ef616c

Browse files
committed
Update version and update publish local script
1 parent 816812a commit 2ef616c

7 files changed

Lines changed: 30 additions & 23 deletions

File tree

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
1313
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
1414

15-
<VersionFile>4.13.2</VersionFile>
16-
<VersionPrefix>4.13.2</VersionPrefix>
15+
<VersionFile>4.14.0</VersionFile>
16+
<VersionPrefix>4.14.0</VersionPrefix>
1717
<VersionSuffix></VersionSuffix>
1818
<AssemblyVersion>$(VersionFile)</AssemblyVersion>
1919
<FileVersion>$(VersionFile)</FileVersion>

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@
8888
<PackageVersion Include="System.Text.Encodings.Web" Version="$(RuntimeVersion10)" />
8989
<PackageVersion Include="System.Text.Json" Version="$(RuntimeVersion9)" />
9090
</ItemGroup>
91-
</Project>
91+
</Project>

_PublishDemoLocally.ps1

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,23 @@ if (Test-Path $globalJsonLocalPath) {
8989
}
9090

9191
#search through all .csproj files and replace <TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks> with <TargetFrameworks>net8.0;net9.0</TargetFrameworks>
92-
Write-Host "👉 Adjusting TargetFrameworks in project files..." -ForegroundColor Yellow
93-
$csprojFiles = Get-ChildItem -Path "." -Recurse -Filter "*.csproj"
94-
foreach ($file in $csprojFiles) {
95-
#if the project file is in the Templates folder, skip it
96-
if ($file.PSPath -like "*Templates*") {
97-
continue
98-
}
99-
$originalContent = Get-Content $file.PSPath -Raw
100-
$newContent = $originalContent -replace '<TargetFrameworks>(.*?);net10.0</TargetFrameworks>', '<TargetFrameworks>$1</TargetFrameworks>'
101-
if ($originalContent -ne $newContent) {
102-
Set-Content $file.PSPath ($newContent.TrimEnd("`r", "`n"))
103-
}
104-
$newContent = $originalContent -replace '<TargetFramework>net10.0</TargetFramework>', '<TargetFramework>net9.0</TargetFramework>'
105-
if ($originalContent -ne $newContent) {
106-
Set-Content $file.PSPath ($newContent.TrimEnd("`r", "`n"))
107-
}
108-
}
92+
#Write-Host "👉 Adjusting TargetFrameworks in project files..." -ForegroundColor Yellow
93+
#$csprojFiles = Get-ChildItem -Path "." -Recurse -Filter "*.csproj"
94+
#foreach ($file in $csprojFiles) {
95+
# #if the project file is in the Templates folder, skip it
96+
# if ($file.PSPath -like "*Templates*") {
97+
# continue
98+
# }
99+
# $originalContent = Get-Content $file.PSPath -Raw
100+
# $newContent = $originalContent -replace '<TargetFrameworks>(.*?);net10.0</TargetFrameworks>', '<TargetFrameworks>$1</TargetFrameworks>'
101+
# if ($originalContent -ne $newContent) {
102+
# Set-Content $file.PSPath ($newContent.TrimEnd("`r", "`n"))
103+
# }
104+
# $newContent = $originalContent -replace '<TargetFramework>net10.0</TargetFramework>', '<TargetFramework>net9.0</TargetFramework>'
105+
# if ($originalContent -ne $newContent) {
106+
# Set-Content $file.PSPath ($newContent.TrimEnd("`r", "`n"))
107+
# }
108+
#}
109109

110110
# Search through Directory.Packages.props and replace the following package version from 4.14.0 to 4.13.0 for the following packages:
111111
# - Microsoft.CodeAnalysis.Analyzers

eng/pipelines/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ variables:
22
# File and Package version
33
# dev branch: 1.2.4-Preview-23282-1' (PackageSuffix is always ignored in Dev branch)
44
# main branch: 1.2.4-RC.1' (PackageSuffix is ignored, if empty, in Main branch)
5-
FileVersion: '4.13.2' # Set the next final version here.
5+
FileVersion: '4.14.0' # Set the next final version here.
66
PackageSuffix: ''

global.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.308",
3+
"version": "10.0.103",
44
"allowPrerelease": true,
55
"rollForward": "latestPatch"
66
}

global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "10.0.103",
4+
"allowPrerelease": false,
5+
"rollForward": "disable"
6+
}
7+
}

global.json.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.308",
3+
"version": "10.0.103",
44
"allowPrerelease": false,
55
"rollForward": "disable"
66
}

0 commit comments

Comments
 (0)