Skip to content

Commit 78d65d6

Browse files
authored
Update snippet TFMs from .NET 6 to .NET 8 (#43723)
1 parent 7287449 commit 78d65d6

File tree

335 files changed

+720
-904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+720
-904
lines changed

docs/core/tutorials/library-with-visual-studio-code.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso
5858

5959
1. Open *Class1.cs* and replace the code with the following code.
6060

61-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs":::
61+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs":::
6262

6363
The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a <xref:System.Boolean> value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The <xref:System.Char.IsUpper(System.Char)?displayProperty=nameWithType> method returns `true` if a character is uppercase.
6464

@@ -96,7 +96,7 @@ Add a console application that uses the class library. The app will prompt the u
9696

9797
1. Open *ShowCase/Program.cs* and replace all of the code with the following code.
9898

99-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs":::
99+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs":::
100100

101101
The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user.
102102

@@ -195,7 +195,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso
195195

196196
1. Open *Class1.cs* and replace the code with the following code.
197197

198-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs":::
198+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs":::
199199

200200
The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a <xref:System.Boolean> value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The <xref:System.Char.IsUpper(System.Char)?displayProperty=nameWithType> method returns `true` if a character is uppercase.
201201

@@ -231,7 +231,7 @@ Add a console application that uses the class library. The app will prompt the u
231231

232232
1. Open *ShowCase/Program.cs* and replace all of the code with the following code.
233233

234-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs":::
234+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs":::
235235

236236
The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user.
237237

@@ -328,7 +328,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso
328328

329329
1. Open *Class1.cs* and replace the code with the following code.
330330

331-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs":::
331+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs":::
332332

333333
The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a <xref:System.Boolean> value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The <xref:System.Char.IsUpper(System.Char)?displayProperty=nameWithType> method returns `true` if a character is uppercase.
334334

@@ -364,7 +364,7 @@ Add a console application that uses the class library. The app will prompt the u
364364

365365
1. Open *ShowCase/Program.cs* and replace all of the code with the following code.
366366

367-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs":::
367+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs":::
368368

369369
The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user.
370370

docs/core/tutorials/library-with-visual-studio.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ To create the blank solution:
6262

6363
1. Replace the code in the code window for *Class1.cs* or *Class1.vb* with the following code, and save the file. If the language you want to use isn't shown, change the language selector at the top of the page.
6464

65-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs":::
65+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs":::
6666
:::code language="vb" source="./snippets/library-with-visual-studio/vb/StringLibrary/Class1.vb":::
6767

6868
The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a <xref:System.Boolean> value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The <xref:System.Char.IsUpper(System.Char)?displayProperty=nameWithType> method returns `true` if a character is uppercase.
@@ -89,7 +89,7 @@ Add a console application that uses the class library. The app will prompt the u
8989

9090
1. In the code window for the *Program.cs* or *Program.vb* file, replace all of the code with the following code.
9191

92-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs":::
92+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs":::
9393
:::code language="vb" source="./snippets/library-with-visual-studio/vb/ShowCase/Program.vb":::
9494

9595
The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user.
@@ -196,7 +196,7 @@ To create the blank solution:
196196

197197
1. Replace the code in the code window for *Class1.cs* or *Class1.vb* with the following code, and save the file. If the language you want to use isn't shown, change the language selector at the top of the page.
198198

199-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs":::
199+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs":::
200200
:::code language="vb" source="./snippets/library-with-visual-studio/vb/StringLibrary/Class1.vb":::
201201

202202
The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a <xref:System.Boolean> value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The <xref:System.Char.IsUpper(System.Char)?displayProperty=nameWithType> method returns `true` if a character is uppercase.
@@ -223,7 +223,7 @@ Add a console application that uses the class library. The app will prompt the u
223223

224224
1. In the code window for the *Program.cs* or *Program.vb* file, replace all of the code with the following code.
225225

226-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs":::
226+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs":::
227227
:::code language="vb" source="./snippets/library-with-visual-studio/vb/ShowCase/Program.vb":::
228228

229229
The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user.
@@ -330,7 +330,7 @@ To create the blank solution:
330330

331331
1. Replace the code in the code window for *Class1.cs* or *Class1.vb* with the following code, and save the file. If the language you want to use isn't shown, change the language selector at the top of the page.
332332

333-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs":::
333+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs":::
334334
:::code language="vb" source="./snippets/library-with-visual-studio/vb/StringLibrary/Class1.vb":::
335335

336336
The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a <xref:System.Boolean> value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The <xref:System.Char.IsUpper(System.Char)?displayProperty=nameWithType> method returns `true` if a character is uppercase.
@@ -357,7 +357,7 @@ Add a console application that uses the class library. The app will prompt the u
357357

358358
1. In the code window for the *Program.cs* or *Program.vb* file, replace all of the code with the following code.
359359

360-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs":::
360+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs":::
361361
:::code language="vb" source="./snippets/library-with-visual-studio/vb/ShowCase/Program.vb":::
362362

363363
The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user.

docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/ShowCase.csproj

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/StringLibrary.csproj

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/StringLibraryTest.csproj

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs

Lines changed: 0 additions & 52 deletions
This file was deleted.

docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/HelloWorld.csproj

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/Program.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)