Skip to content

Commit f4d4d44

Browse files
Merge pull request #5 from dotnet-presentations/copilot/update-visual-studio-dotnet
Update to Visual Studio 2026 and .NET 10
2 parents 6b20249 + 830ee49 commit f4d4d44

10 files changed

Lines changed: 54 additions & 32 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
push:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: '10.0.x'
23+
24+
- name: Restore dependencies
25+
run: dotnet restore src/TinyShop.sln
26+
27+
- name: Build
28+
run: dotnet build src/TinyShop.sln --no-restore --configuration Release

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<img src="img/banner.jpg" alt="decorative banner" width="1200"/>
33
</p>
44

5-
# LAB300 - Hands-on with GitHub Copilot in Visual Studio 2022
5+
# LAB300 - Hands-on with GitHub Copilot in Visual Studio 2026
66

7-
This lab will guide you through using GitHub Copilot's various features in Visual Studio 2022. You'll start with a partially completed TinyShop application and use GitHub Copilot to complete missing features and enhance the application.
7+
This lab will guide you through using GitHub Copilot's various features in Visual Studio 2026. You'll start with a partially completed TinyShop application and use GitHub Copilot to complete missing features and enhance the application.
88

99
## Prerequisites
1010

11-
- Visual Studio 2022 with GitHub Copilot extension installed
12-
- .NET 9 SDK
11+
- Visual Studio 2026 with GitHub Copilot extension installed
12+
- .NET 10 SDK
1313
- GitHub account with Copilot subscription (including Free)
1414

1515
## Lab Overview

lab/part0-exploring-codebase.md

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

33
GitHub Copilot Chat allows you to ask questions about your code and get intelligent responses.
44

5-
1. [] Open the solution in Visual Studio 2022 if it is not already open.
5+
1. [] Open the solution in Visual Studio 2026 if it is not already open.
66
1. Click on the Github Copilot Chat in the top-right corner of Visual Studio and select **Open Chat Window** or press `Ctrl+\+C` if Copilot chat isn't open.
77
![Open chat window dialog](./images/1-open-copilot-chat.png)
88
1. [] Try asking questions about the project structure:

lab/part4-custom-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Here are some guidelines to consider when creating a Copilot instructions file:
3333
- Should follow OpenAPI best practices.
3434

3535
### Frontend
36-
- Store project is a .NET 9 Blazor Server application.
36+
- Store project is a .NET 10 Blazor Server application.
3737
- Uses default Bootstrap styling.
3838
- UI should have a modern look and feel.
3939
- CSS should be in .razor.css files.

lab/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To complete this workshop you will need to clone a repository with a copy of the
1717
1. [] Enter +++@lab.CloudPortalCredential(User1).Username+++ on the Email, phone, or Skype input box and click on **Next**
1818
1. [] Enter +++@lab.CloudPortalCredential(User1).Password+++ on the password field and click on **Sign in**
1919
1. [] Click on **Yes** when prompted to **Stay signed in**, you will be redirect to the main organization page, you can close the tab.
20-
1. [] Open Visual Studio 2022
20+
1. [] Open Visual Studio 2026
2121
1. [] Select **Continue without code**, if prompted to sign-in, you can click Close.
2222
1. [] Click on Copilot icon on top bar (left side next to the search input box)
2323
![Copilot icon](./images/0-copilot-icon.png)

src/DataEntities/DataEntities.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>

src/Products/Products.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<InvariantGlobalization>true</InvariantGlobalization>
@@ -11,15 +11,15 @@
1111
<None Remove="Database.db-wal" />
1212
</ItemGroup>
1313
<ItemGroup>
14-
<PackageReference Include="System.Text.Json" Version="9.0.2" />
15-
<PackageReference Include="System.Formats.Asn1" Version="9.0.2" />
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.2" />
17-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.2" />
18-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.2">
14+
<PackageReference Include="System.Text.Json" Version="10.0.1" />
15+
<PackageReference Include="System.Formats.Asn1" Version="10.0.1" />
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.1" />
17+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.1" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.1">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
</PackageReference>
22-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" />
22+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="10.0.1" />
2323
</ItemGroup>
2424
<ItemGroup>
2525
<ProjectReference Include="..\DataEntities\DataEntities.csproj" />

src/Store/Store.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<LangVersion>preview</LangVersion>

src/TinyShop.AppHost/TinyShop.AppHost.csproj

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<Sdk Name="Aspire.AppHost.Sdk" Version="9.2.0" />
1+
<Project Sdk="Aspire.AppHost.Sdk/13.1.0">
42

53
<PropertyGroup>
64
<OutputType>Exe</OutputType>
7-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
86
<ImplicitUsings>enable</ImplicitUsings>
97
<Nullable>enable</Nullable>
108
<UserSecretsId>0436d258-242a-41c2-96b5-c850841f6606</UserSecretsId>
119
</PropertyGroup>
1210

13-
<ItemGroup>
14-
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.2.0" />
15-
</ItemGroup>
16-
1711
<ItemGroup>
1812
<ProjectReference Include="..\Products\Products.csproj" />
1913
<ProjectReference Include="..\Store\Store.csproj" />
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsAspireSharedProject>true</IsAspireSharedProject>
@@ -10,13 +10,13 @@
1010
<ItemGroup>
1111
<FrameworkReference Include="Microsoft.AspNetCore.App" />
1212

13-
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="9.4.0" />
14-
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" Version="9.2.0" />
15-
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.11.2" />
16-
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.11.2" />
17-
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.11.1" />
18-
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.11.1" />
19-
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.11.1" />
13+
<PackageReference Include="Microsoft.Extensions.Http.Resilience" Version="10.1.0" />
14+
<PackageReference Include="Microsoft.Extensions.ServiceDiscovery" Version="10.1.0" />
15+
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.14.0" />
16+
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.14.0" />
17+
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.14.0" />
18+
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.14.0" />
19+
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.14.0" />
2020
</ItemGroup>
2121

2222
</Project>

0 commit comments

Comments
 (0)