Skip to content

Commit 053d4b5

Browse files
committed
update snippet links
1 parent 96c71c5 commit 053d4b5

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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/testing-library-with-visual-studio-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ To create the test methods:
242242

243243
1. Open *StringLibraryTest/UnitTest1.cs* and replace all of the code with the following code.
244244

245-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs":::
245+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibraryTest/UnitTest1.cs":::
246246

247247
The test of uppercase characters in the `TestStartsWithUpper` method includes the Greek capital letter alpha (U+0391) and the Cyrillic capital letter EM (U+041C). The test of lowercase characters in the `TestDoesNotStartWithUpper` method includes the Greek small letter alpha (U+03B1) and the Cyrillic small letter Ghe (U+0433).
248248

@@ -395,7 +395,7 @@ To create the test methods:
395395

396396
1. Open *StringLibraryTest/UnitTest1.cs* and replace all of the code with the following code.
397397

398-
:::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs":::
398+
:::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibraryTest/UnitTest1.cs":::
399399

400400
The test of uppercase characters in the `TestStartsWithUpper` method includes the Greek capital letter alpha (U+0391) and the Cyrillic capital letter EM (U+041C). The test of lowercase characters in the `TestDoesNotStartWithUpper` method includes the Greek small letter alpha (U+03B1) and the Cyrillic small letter Ghe (U+0433).
401401

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Enhance the application to prompt the user for their name and display it along w
204204

205205
1. In *Program.cs* or *Program.vb*, replace the contents of the `Main` method, which is the line that calls `Console.WriteLine`, with the following code:
206206

207-
:::code language="csharp" source="./snippets/with-visual-studio-6-0/csharp/Program.cs" id="MainMethod":::
207+
:::code language="csharp" source="./snippets/with-visual-studio/csharp/Program.cs" id="MainMethod":::
208208
:::code language="vb" source="./snippets/with-visual-studio/vb/Program.vb" id="MainMethod":::
209209

210210
This code displays a prompt in the console window and waits until the user enters a string followed by the <kbd>Enter</kbd> key. It stores this string in a variable named `name`. It also retrieves the value of the <xref:System.DateTime.Now?displayProperty=nameWithType> property, which contains the current local time, and assigns it to a variable named `currentDate`. And it displays these values in the console window. Finally, it displays a prompt in the console window and calls the <xref:System.Console.ReadKey(System.Boolean)?displayProperty=nameWithType> method to wait for user input.
@@ -324,7 +324,7 @@ Enhance the application to prompt the user for their name and display it along w
324324

325325
1. In *Program.cs* or *Program.vb*, replace the contents of the `Main` method, which is the line that calls `Console.WriteLine`, with the following code:
326326

327-
:::code language="csharp" source="./snippets/with-visual-studio-6-0/csharp/Program.cs" id="MainMethod":::
327+
:::code language="csharp" source="./snippets/with-visual-studio/csharp/Program.cs" id="MainMethod":::
328328
:::code language="vb" source="./snippets/with-visual-studio/vb/Program.vb" id="MainMethod":::
329329

330330
This code displays a prompt in the console window and waits until the user enters a string followed by the <kbd>Enter</kbd> key. It stores this string in a variable named `name`. It also retrieves the value of the <xref:System.DateTime.Now?displayProperty=nameWithType> property, which contains the current local time, and assigns it to a variable named `currentDate`. And it displays these values in the console window. Finally, it displays a prompt in the console window and calls the <xref:System.Console.ReadKey(System.Boolean)?displayProperty=nameWithType> method to wait for user input.

0 commit comments

Comments
 (0)