Skip to content

Commit 4b83ff2

Browse files
fix(samples): align TFM to net9.0 and pin SDK
Samples targeted net10.0 while the core framework and CI target net9.0. Align all projects to net9.0 and add global.json to pin the SDK to 9.0.x (latestFeature). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a1c3b7b commit 4b83ff2

6 files changed

Lines changed: 11 additions & 5 deletions

File tree

global.json

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

samples/ReactorGallery/ReactorGallery.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
4-
<TargetFramework>net10.0-windows10.0.22621.0</TargetFramework>
4+
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
55
<Platforms>x64;ARM64</Platforms>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

samples/apps/chat/App/ChatSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net10.0-windows10.0.22621.0</TargetFramework>
5+
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
66
<Platforms>x64;ARM64</Platforms>
77
<RootNamespace>ChatSample.App</RootNamespace>
88
<AssemblyName>ChatSample</AssemblyName>

samples/apps/chat/Chat.Model/Chat.Model.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net10.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<RootNamespace>ChatSample.Chat.Model</RootNamespace>
66
<AssemblyName>ChatSample.Chat.Model</AssemblyName>
77
<ImplicitUsings>enable</ImplicitUsings>

samples/apps/chat/Chat.UI/Chat.UI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net10.0-windows10.0.22621.0</TargetFramework>
4+
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
55
<Platforms>x64;ARM64</Platforms>
66
<RootNamespace>ChatSample.Chat.UI</RootNamespace>
77
<AssemblyName>ChatSample.Chat.UI</AssemblyName>

samples/apps/demo-script-tool/App/DemoScriptTool.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net10.0-windows10.0.22621.0</TargetFramework>
5+
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
66
<Platforms>x64;ARM64</Platforms>
77
<RootNamespace>DemoScriptTool.App</RootNamespace>
88
<AssemblyName>DemoScriptTool</AssemblyName>

0 commit comments

Comments
 (0)