https://github.com/dotnet/try-samples
https://github.com/dotnet/try-samples
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dotnet/try-samples
- Owner: dotnet
- License: cc-by-4.0
- Created: 2019-06-14T20:55:10.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T06:35:09.000Z (about 1 year ago)
- Last Synced: 2025-01-10T15:10:20.034Z (6 months ago)
- Language: C#
- Size: 4.48 MB
- Stars: 1,139
- Watchers: 42
- Forks: 631
- Open Issues: 50
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://dev.azure.com/dnceng/public/_build/latest?definitionId=548&branchName=master)

[](https://mybinder.org/v2/gh/dotnet/try-samples/master?urlpath=lab)# Try .NET
|| [**Basics**](#basics) • [**Contribution Guidelines**](#contribution-guidelines) ||
## Basics
This repository contains samples and tutorials that run using the [dotnet try](https://github.com/dotnet/try) global tool.
You can explore these tutorials in your environment using the `dotnet try` global tool:
*Prerequisite: Install .NET Core SDK [3.0](https://dotnet.microsoft.com/download/dotnet-core/3.0)*
1. Install the [dotnet-try](https://github.com/dotnet/try/blob/master/README.md#setup) global tool.
- to install: `dotnet tool install -g Microsoft.dotnet-try`
- to uninstall: `dotnet tool uninstall -g Microsoft.dotnet-try`
- to update: `dotnet tool update -g Microsoft.dotnet-try`
2. Clone this repository.
3. Set the current directory to one of the sample tutorials (or use the current folder to see all samples).
4. Run `dotnet try`.
1. This will launch the browser. Now, you can read the documentation and run code in one place.

## The tutorials in this repository are:
- [Beginners Guide to C#](./Beginners/Readme.md)
- [101 LINQ Samples](./101-linq-samples/readme.md)
- [Explore C# 7 through C# 7.3](./csharp7/readme.md).
- [Explore C# 8](./csharp8/readme.md).## Contribution Guidelines
We're working on this. The existing tutorials are linked to [.NET docs](https://github.com/dotnet/docs), but that's not required.
If you have suggestions for a sample, create an issue to start a discussion.