.NET
.NET is a software framework developed by Microsoft that is used to build and run applications on Windows operating systems. It provides a programming model and a runtime environment for building and deploying software applications.
dotnet CLI
This section can be skipped if you don’t use the Terminal.
-
List your dotnet SDKs
This component was made by Stratis Dermanoutsos. The code can be found here. -
Create project
This component was made by Stratis Dermanoutsos. The code can be found here. -
Add package reference to your project
This component was made by Stratis Dermanoutsos. The code can be found here. -
Remove package
This component was made by Stratis Dermanoutsos. The code can be found here. -
Restore dependencies
This component was made by Stratis Dermanoutsos. The code can be found here. -
Build and run project
This component was made by Stratis Dermanoutsos. The code can be found here.This command, depending on the type of project, requires the respective runtime program.
This component was made by Stratis Dermanoutsos. The code can be found here.to view your currently installed runtimes.
-
For more
This component was made by Stratis Dermanoutsos. The code can be found here. -
Choose version of .NET
Before you run the
This component was made by Stratis Dermanoutsos. The code can be found here.command, you can specify the version of dotnet to use by:
-
Create a folder to be the root of your project, where you are going to run the above command
-
While in that folder, run
This component was made by Stratis Dermanoutsos. The code can be found here. -
Run
This component was made by Stratis Dermanoutsos. The code can be found here.to see the downloaded versions in your system
-
Replace the value of “version” inside the global.json file with EXACTLY the one you want to use
-
Run
This component was made by Stratis Dermanoutsos. The code can be found here.to make sure the change has been applied
-
Run
This component was made by Stratis Dermanoutsos. The code can be found here.
-
Resources
- .NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
- Tutorial: Create a .NET class library
- Create and publish a NuGet package with the dotnet CLI
- Tutorial: Create a .NET tool using the .NET CLI
- How to create your own .NET CLI tools by Nick Chapsas
- Quickstart: Create and publish a package with the dotnet CLI
- How to add Global Exception Handling in .NET 6 and 7
- How to enable tab completion for the .NET CLI
- Dependency Injection for Absolute Beginners with C# and .NET
- dotnet SDK documentation
- dotnet CLI documentation