My Top Dotnet Command Snippets

Here are some top dotnet command snippets that developers frequently use:

  1. The 'dotnet new' command is utilized to create a new project. It creates a new project based on the specified template. You can use different templates for creating various types of projects like console applications, class libraries, unit test projects, etc.

    The syntax is as follows:

    dotnet new console -n MyApp

    the templates are in https://learn.microsoft.com/es-es/dotnet/core/tools/dotnet-new#arguments

  2. Build a project:

    dotnet build
    
    
  3. Run a project:

    dotnet run
    
    
  4. Test a project:

    dotnet test
    
    
  5. Publish a project for a specific runtime:

    dotnet publish -c Release -r win10-x64
    
    
  6. Clean a project:

    dotnet clean
    
    
  7. Restore the dependencies of a project:

    dotnet restore
    
    



--
Atte.
Victor Hugo Saavedra
http://vhspiceros.blogspot.com

Comentarios

Entradas populares de este blog

Buscar columnas en todas las tablas SQL SERVER

"is not null" o "<> Null" en Sql Server

Aplicación y Aplicativo