-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Update Visual Studio tutorials from VS 2022 to VS 2026 and .NET 8 to .NET 10 #51027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4543d27
Initial plan
Copilot 79e5240
Update Visual Studio tutorials from VS 2022 to VS 2026 and .NET 8 to …
Copilot 0f41e17
Update Create a .NET class library using Visual Studio
meaghanlewis 38e8c35
Update Create a .NET console application using Visual Studio
meaghanlewis 4f31bef
Update Debug a .NET console application using Visual Studio
meaghanlewis 6f45172
Update Publish a .NET console application using Visual Studio
meaghanlewis a3ec65b
Update Test a .NET class library using Visual Studio
meaghanlewis 3cce3d0
remove old testing project
meaghanlewis ce65dd1
update code snippets for VB
meaghanlewis 6201c23
Revert "update code snippets for VB"
meaghanlewis 8a54690
update framework version from 8 to 10
meaghanlewis b30a6d1
remove redundant test folder
meaghanlewis aa667a1
Fix snippet path
meaghanlewis 887983f
rephrase sentence
meaghanlewis 9f39144
Clarify instructions for entering conditional expression in debugging…
meaghanlewis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-92.1 KB
docs/core/tutorials/media/debugging-with-visual-studio/breakpoint-hit-net6.png
Binary file not shown.
Binary file added
BIN
+74.9 KB
docs/core/tutorials/media/debugging-with-visual-studio/breakpoint-hit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-45.9 KB
.../core/tutorials/media/debugging-with-visual-studio/breakpoint-settings-net6.png
Binary file not shown.
Binary file added
BIN
+60.5 KB
docs/core/tutorials/media/debugging-with-visual-studio/breakpoint-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-5.65 KB
docs/core/tutorials/media/debugging-with-visual-studio/console-window.png
Binary file not shown.
Binary file modified
BIN
+1.95 KB
(110%)
docs/core/tutorials/media/debugging-with-visual-studio/immediate-window-output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-10.5 KB
(88%)
docs/core/tutorials/media/debugging-with-visual-studio/locals-immediate-window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-33.7 KB
.../tutorials/media/debugging-with-visual-studio/set-breakpoint-in-editor-net6.png
Binary file not shown.
Binary file added
BIN
+45.4 KB
.../core/tutorials/media/debugging-with-visual-studio/set-breakpoint-in-editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-33.7 KB
docs/core/tutorials/media/debugging-with-visual-studio/step-into-method-net6.png
Binary file not shown.
Binary file added
BIN
+43.6 KB
docs/core/tutorials/media/debugging-with-visual-studio/step-into-method.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-34.1 KB
...e/tutorials/media/debugging-with-visual-studio/step-into-source-method-net6.png
Binary file not shown.
Binary file added
BIN
+44 KB
docs/core/tutorials/media/debugging-with-visual-studio/step-into-source-method.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-29 KB
docs/core/tutorials/media/debugging-with-visual-studio/vb-step-into-method.png
Binary file not shown.
Binary file removed
BIN
-29.4 KB
...ore/tutorials/media/debugging-with-visual-studio/vb-step-into-source-method.png
Binary file not shown.
Binary file modified
BIN
-1 KB
(90%)
...re/tutorials/media/debugging-with-visual-studio/visual-studio-toolbar-debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.33 KB
(86%)
.../tutorials/media/debugging-with-visual-studio/visual-studio-toolbar-release.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-12.3 KB
(61%)
.../core/tutorials/media/library-with-visual-studio/add-reference-context-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-39.2 KB
(51%)
docs/core/tutorials/media/library-with-visual-studio/blank-solution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.68 KB
(110%)
docs/core/tutorials/media/library-with-visual-studio/manage-project-references.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-12.6 KB
docs/core/tutorials/media/library-with-visual-studio/run-showcase-net6.png
Binary file not shown.
Binary file added
BIN
+12.1 KB
docs/core/tutorials/media/library-with-visual-studio/run-showcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-14.5 KB
(66%)
...tutorials/media/library-with-visual-studio/set-startup-project-context-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-22.3 KB
...torials/media/library-with-visual-studio/vb/library-project-properties-net8.png
Binary file not shown.
Binary file added
BIN
+56.7 KB
...re/tutorials/media/library-with-visual-studio/vb/library-project-properties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.66 KB
(87%)
docs/core/tutorials/media/publishing-with-visual-studio/pick-publish-target.png
Oops, something went wrong.
Binary file modified
BIN
-1.14 KB
(93%)
.../tutorials/media/publishing-with-visual-studio/pick-specific-publish-target.png
Oops, something went wrong.
Binary file modified
BIN
-16.8 KB
(48%)
docs/core/tutorials/media/publishing-with-visual-studio/publish-context-menu.png
Oops, something went wrong.
Binary file removed
BIN
-21.4 KB
...ore/tutorials/media/publishing-with-visual-studio/publish-page-loc-tab-net8.png
Diff not rendered.
Binary file added
BIN
+21.8 KB
docs/core/tutorials/media/publishing-with-visual-studio/publish-page-loc-tab.png
Oops, something went wrong.
Binary file removed
BIN
-32.2 KB
docs/core/tutorials/media/publishing-with-visual-studio/publish-page-net8.png
Diff not rendered.
Binary file added
BIN
+21.2 KB
docs/core/tutorials/media/publishing-with-visual-studio/publish-page.png
Oops, something went wrong.
Binary file removed
BIN
-21.5 KB
...e/tutorials/media/publishing-with-visual-studio/published-files-output-net8.png
Diff not rendered.
Binary file added
BIN
+29 KB
docs/core/tutorials/media/publishing-with-visual-studio/published-files-output.png
Oops, something went wrong.
Binary file modified
BIN
-2.68 KB
(73%)
...tutorials/media/publishing-with-visual-studio/visual-studio-toolbar-release.png
Oops, something went wrong.
Binary file added
BIN
+19.4 KB
...esting-library-with-visual-studio/add-project-reference-string-library-test.png
Oops, something went wrong.
Binary file added
BIN
+33.7 KB
...ials/media/testing-library-with-visual-studio/additional-information-mstest.png
Oops, something went wrong.
Binary file removed
BIN
-47.9 KB
...re/tutorials/media/testing-library-with-visual-studio/advanced-save-options.png
Diff not rendered.
Binary file removed
BIN
-18.7 KB
...torials/media/testing-library-with-visual-studio/build-library-context-menu.png
Diff not rendered.
Binary file modified
BIN
-18.4 KB
(74%)
.../core/tutorials/media/testing-library-with-visual-studio/failed-test-detail.png
Oops, something went wrong.
Binary file modified
BIN
-18.7 KB
(70%)
.../core/tutorials/media/testing-library-with-visual-studio/failed-test-window.png
Oops, something went wrong.
Binary file removed
BIN
-108 KB
...core/tutorials/media/testing-library-with-visual-studio/save-file-as-dialog.png
Diff not rendered.
Binary file modified
BIN
-17.8 KB
(69%)
...ore/tutorials/media/testing-library-with-visual-studio/test-explorer-window.png
Oops, something went wrong.
Binary file removed
BIN
-8.86 KB
...ials/media/testing-library-with-visual-studio/visual-studio-toolbar-release.png
Diff not rendered.
Binary file modified
BIN
+41.8 KB
(220%)
docs/core/tutorials/media/with-visual-studio/configure-new-project.png
Oops, something went wrong.
Binary file modified
BIN
+86.1 KB
(360%)
docs/core/tutorials/media/with-visual-studio/create-new-project.png
Oops, something went wrong.
Binary file removed
BIN
-22.7 KB
docs/core/tutorials/media/with-visual-studio/hello-world-console-net6.png
Diff not rendered.
Binary file removed
BIN
-10 KB
docs/core/tutorials/media/with-visual-studio/hello-world-update-net6.png
Diff not rendered.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/tutorials/snippets/library-with-visual-studio/csharp/StringLibrary/StringLibrary.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../tutorials/snippets/library-with-visual-studio/csharp/StringLibraryTest/MSTestSettings.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] |
19 changes: 11 additions & 8 deletions
19
...als/snippets/library-with-visual-studio/csharp/StringLibraryTest/StringLibraryTest.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,24 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net8.0</TargetFramework> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <LangVersion>latest</LangVersion> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <IsPackable>false</IsPackable> | ||
| <EnableMSTestRunner>true</EnableMSTestRunner> | ||
| <OutputType>Exe</OutputType> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="MSTest" Version="4.0.2" /> | ||
| <PackageReference Include="coverlet.collector" Version="6.0.4"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
| </PackageReference> | ||
| <PackageReference Include="MSTest" Version="4.0.1" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\StringLibrary\StringLibrary.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
45 changes: 45 additions & 0 deletions
45
docs/core/tutorials/snippets/library-with-visual-studio/csharp/StringLibraryTest/Test1.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| using UtilityLibraries; | ||
|
|
||
| namespace StringLibraryTest | ||
| { | ||
| [TestClass] | ||
| public sealed class Test1 | ||
| { | ||
| [TestMethod] | ||
| public void TestStartsWithUpper() | ||
| { | ||
| // Tests that we expect to return true. | ||
| string[] words = ["Alphabet", "Zebra", "ABC", "Αθήνα", "Москва"]; | ||
| foreach (var word in words) | ||
| { | ||
| bool result = word.StartsWithUpper(); | ||
| Assert.IsTrue(result, $"Expected for '{word}': true; Actual: {result}"); | ||
| } | ||
| } | ||
|
|
||
| [TestMethod] | ||
| public void TestDoesNotStartWithUpper() | ||
| { | ||
| // Tests that we expect to return false. | ||
| string[] words = ["alphabet", "zebra", "abc", "αυτοκινητοβιομηχανία", "государство", | ||
| "1234", ".", ";", " "]; | ||
| foreach (var word in words) | ||
| { | ||
| bool result = word.StartsWithUpper(); | ||
| Assert.IsFalse(result, $"Expected for '{word}': false; Actual: {result}"); | ||
| } | ||
| } | ||
|
|
||
| [TestMethod] | ||
| public void DirectCallWithNullOrEmpty() | ||
| { | ||
| // Tests that we expect to return false. | ||
| string?[] words = [string.Empty, null]; | ||
| foreach (var word in words) | ||
| { | ||
| bool result = StringLibrary.StartsWithUpper(word); | ||
| Assert.IsFalse(result, $"Expected for '{word ?? "<null>"}': false; Actual: {result}"); | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.