Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/build-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Snippets 5000

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# events on the main branch only.
on:
pull_request:
paths:
Expand All @@ -19,7 +19,7 @@ on:
- "**.sln"
- "**global.json"
- "**snippets.5000.json"
branches: [ master, main ]
branches: [ main ]

env:
DOTNET_INSTALLER_CHANNEL: 'release/5.0.1xx'
Expand Down Expand Up @@ -76,6 +76,3 @@ jobs:
- name: Report status
run: |
./.github/workflows/dependencies/Out-GithubActionStatus.ps1



4 changes: 2 additions & 2 deletions .openpublishing.publish.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"Publish",
"Pdf"
],
"master": [
"main": [
"Publish",
"Pdf"
]
Expand All @@ -90,4 +90,4 @@
"name": "docfx_v3"
},
"need_generate_intellisense": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This tutorial assumes you're familiar with C# and .NET, including either Visual

## Run the starter application

You can get the code for the starter application used in this tutorial from the [dotnet/docs](https://github.com/dotnet/docs) repository in the [csharp/tutorials/AsyncStreams](https://github.com/dotnet/docs/tree/master/docs/csharp/tutorials/snippets/generate-consume-asynchronous-streams/start) folder.
You can get the code for the starter application used in this tutorial from the [dotnet/docs](https://github.com/dotnet/docs) repository in the [csharp/tutorials/AsyncStreams](https://github.com/dotnet/docs/tree/main/docs/csharp/tutorials/snippets/generate-consume-asynchronous-streams/start) folder.

The starter application is a console application that uses the [GitHub GraphQL](https://developer.github.com/v4/) interface to retrieve recent issues written in the [dotnet/docs](https://github.com/dotnet/docs) repository. Start by looking at the following code for the starter app `Main` method:

Expand Down Expand Up @@ -138,7 +138,7 @@ You use another extension method, <xref:System.Threading.Tasks.TaskAsyncEnumerab

:::code language="csharp" source="snippets/generate-consume-asynchronous-streams/finished/Program.cs" id="SnippetEnumerateWithCancellation" :::

You can get the code for the finished tutorial from the [dotnet/docs](https://github.com/dotnet/docs) repository in the [csharp/tutorials/AsyncStreams](https://github.com/dotnet/docs/tree/master/docs/csharp/tutorials/snippets/generate-consume-asynchronous-streams/finished) folder.
You can get the code for the finished tutorial from the [dotnet/docs](https://github.com/dotnet/docs) repository in the [csharp/tutorials/AsyncStreams](https://github.com/dotnet/docs/tree/main/docs/csharp/tutorials/snippets/generate-consume-asynchronous-streams/finished) folder.

## Run the finished application

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Run your program to see the results.

## Next steps

If you got stuck, you can see the source for this tutorial [in our GitHub repo](https://github.com/dotnet/docs/tree/master/docs/csharp/tutorials/intro-to-csharp/snippets/introduction-to-classes).
If you got stuck, you can see the source for this tutorial [in our GitHub repo](https://github.com/dotnet/docs/tree/main/docs/csharp/tutorials/intro-to-csharp/snippets/introduction-to-classes).

You can continue with the [object oriented programming](object-oriented-programming.md) tutorial.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Run the program, and check the results.

## Summary

If you got stuck, you can see the source for this tutorial [in our GitHub repo](https://github.com/dotnet/docs/tree/master/docs/csharp/tutorials/intro-to-csharp/snippets/object-oriented-programming).
If you got stuck, you can see the source for this tutorial [in our GitHub repo](https://github.com/dotnet/docs/tree/main/docs/csharp/tutorials/intro-to-csharp/snippets/object-oriented-programming).

This tutorial demonstrated many of the techniques used in Object-Oriented programming:

Expand Down
2 changes: 1 addition & 1 deletion docs/standard/base-types/parsing-datetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following example illustrates the use of the <xref:System.DateTime.Parse%2A?
> All the C# samples in this article run in your browser. Press the **Run** button to see the output. You can also edit them to experiment yourself.

> [!NOTE]
> These examples are available in the GitHub docs repo for both [C#](https://github.com/dotnet/docs/tree/master/samples/snippets/csharp/how-to/conversions) and [Visual Basic](https://github.com/dotnet/docs/tree/master/samples/snippets/visualbasic/how-to/conversions).
> These examples are available in the GitHub docs repo for both [C#](https://github.com/dotnet/docs/tree/main/samples/snippets/csharp/how-to/conversions) and [Visual Basic](https://github.com/dotnet/docs/tree/main/samples/snippets/visualbasic/how-to/conversions).

[!code-csharp-interactive[Parsing.DateAndTime#1](../../../samples/snippets/csharp/how-to/conversions/StringToDateTime.cs#1)]
[!code-vb[Parsing.DateAndTime#1](../../../samples/snippets/visualbasic/how-to/conversions/Program.vb#1)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The following web sites provide guidance and can help you find answers to common

|URL|Description|
|----------|----------------|
|[Visual Basic documentation samples](https://github.com/dotnet/docs/tree/master/samples/snippets/visualbasic)|Contains the samples used throughout the Visual Basic and .NET documentation.|
|[Visual Basic documentation samples](https://github.com/dotnet/docs/tree/main/samples/snippets/visualbasic)|Contains the samples used throughout the Visual Basic and .NET documentation.|
|[Samples browser](https://docs.microsoft.com/samples/browse/?languages=vb)|Contains code samples written in Visual Basic|

### Forums
Expand Down
2 changes: 1 addition & 1 deletion docs/visual-basic/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Provides download links for Visual Studio versions that come with Visual Basic s
- [Object-Oriented Programming](../programming-guide/concepts/object-oriented-programming.md)
Provides links to pages that introduce object-oriented programming and describe how to create your own objects and how to use objects to simplify your coding.

- [Samples](https://github.com/dotnet/docs/tree/master/samples/snippets/visualbasic)
- [Samples](https://github.com/dotnet/docs/tree/main/samples/snippets/visualbasic)
Provides links to sample code in Visual Basic.

- [Walkthroughs](../walkthroughs.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/visual-basic/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,6 @@
- name: Language Specification
href: reference/language-specification/
- name: Sample Applications
href: https://github.com/dotnet/docs/tree/master/samples/snippets/visualbasic
href: https://github.com/dotnet/docs/tree/main/samples/snippets/visualbasic
- name: Walkthroughs
href: walkthroughs.md