Skip to content

Commit 794f1ea

Browse files
authored
Merge pull request #60 from github/copilot/update-to-dotnet-10
Update to .NET 10
2 parents e6f6221 + 1f8b144 commit 794f1ea

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": ".NET in Codespaces",
3-
"image": "mcr.microsoft.com/dotnet/sdk:9.0",
3+
"image": "mcr.microsoft.com/dotnet/sdk:10.0",
44
"features": {
55
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
66
"ghcr.io/devcontainers/features/github-cli:1": {
@@ -15,8 +15,8 @@
1515
"ghcr.io/devcontainers/features/common-utils:2": {},
1616
"ghcr.io/devcontainers/features/dotnet:2": {
1717
"version": "none",
18-
"dotnetRuntimeVersions": "8.0",
19-
"aspNetCoreRuntimeVersions": "8.0"
18+
"dotnetRuntimeVersions": "10.0",
19+
"aspNetCoreRuntimeVersions": "10.0"
2020
}
2121
},
2222
"customizations": {
@@ -40,7 +40,7 @@
4040
},
4141
"remoteEnv": {
4242
"DOTNET_MULTILEVEL_LOOKUP": "0",
43-
"TARGET": "net9.0"
43+
"TARGET": "net10.0"
4444
},
4545
"portsAttributes": {
4646
"8080": {

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup .NET
2828
uses: actions/setup-dotnet@v4
2929
with:
30-
dotnet-version: '9.0.x'
30+
dotnet-version: '10.0.x'
3131

3232
- name: Restore dependencies
3333
run: dotnet restore ${{ matrix.project }}

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"type": "coreclr",
2020
"request": "launch",
2121
"preLaunchTask": "build backend",
22-
"program": "${workspaceFolder}/SampleApp/BackEnd/bin/Debug/net9.0/BackEnd.dll",
22+
"program": "${workspaceFolder}/SampleApp/BackEnd/bin/Debug/net10.0/BackEnd.dll",
2323
"args": [],
2424
"cwd": "${workspaceFolder}/SampleApp/BackEnd",
2525
"stopAtEntry": false,
@@ -40,7 +40,7 @@
4040
"type": "coreclr",
4141
"request": "launch",
4242
"preLaunchTask": "build frontend",
43-
"program": "${workspaceFolder}/SampleApp/FrontEnd/bin/Debug/net9.0/FrontEnd.dll",
43+
"program": "${workspaceFolder}/SampleApp/FrontEnd/bin/Debug/net10.0/FrontEnd.dll",
4444
"args": [],
4545
"cwd": "${workspaceFolder}/SampleApp/FrontEnd",
4646
"stopAtEntry": false,

SampleApp/BackEnd/BackEnd.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<InvariantGlobalization>true</InvariantGlobalization>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.*" />
12-
<PackageReference Include="Scalar.AspNetCore" Version="2.0.*" />
11+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.*" />
12+
<PackageReference Include="Scalar.AspNetCore" Version="2.*" />
1313
</ItemGroup>
1414

1515
</Project>

SampleApp/FrontEnd/FrontEnd.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.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

readme.md

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

33
Want to try out the latest performance improvements coming with .NET for web development?
44

5-
This repo builds a Weather API, OpenAPI integration to test with [Scalar](https://learn.microsoft.com/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-9.0#use-scalar-for-interactive-api-documentation), and displays the data in a web application using Blazor with .NET.
5+
This repo builds a Weather API, OpenAPI integration to test with [Scalar](https://learn.microsoft.com/aspnet/core/fundamentals/openapi/using-openapi-documents?view=aspnetcore-10.0#use-scalar-for-interactive-api-documentation), and displays the data in a web application using Blazor with .NET.
66

77
We've given you both a frontend and backend to play around with and where you go from here is up to you!
88

0 commit comments

Comments
 (0)