Hubo un error en el slide ya que CLI para este caso es Command-line interface.
Presentaci贸n y conceptos
Todo lo que aprender谩s sobre .NET
Prerrequisitos
驴Qu茅 es .NET?
.NET Framework vs .NET Core
Ventajas y usos de .NET
L铆nea de tiempo de .NET y C#
Componentes de .NET
Common Language Runtime
Compilador Roslyn
Common Language Specification
Common Type System
Herramientas e instalaci贸n
Instalacion del SDK
IDEs para trabajar con .NET
dotnet CLI
Primera App con dotnet CLI
Proyecto y librer铆as
Estructura de un proyecto .NET
Compilaci贸n y ejecuci贸n
Archivos de compilaci贸n
Archivo Global JSON
C贸mo encontrar paquetes para .NET usando NuGet
Descargando un paquete con NuGet
Cierre
驴C贸mo seguir aprendiendo .NET?
You don't have access to this class
Keep learning! Join and start boosting your career
The .NET CLI (Common Language Interface) is a powerful tool that allows you to compile, run and publish .NET projects, compatible with any type of .NET project. In addition, its command line interface provides accessibility to a number of advanced functions that could be complex if performed manually. Learn how to take full advantage of this tool to streamline your workflow and increase efficiency in your development projects.
The .NET CLI is divided into two main groups of commands: general and project-specific:
General commands: these apply at the operating system and SDK level, allowing you to create new projects, structure folders, and manage configuration files. Examples include dotnet new
, which generates a new project with a base template, and dotnet add
, which manages packages and project references.
Project-specific commands: These must be run within a directory containing a .NET project, and are geared toward tasks such as restoring, compiling, running, cleaning up, and testing existing projects. Commands such as dotnet build
compile the project, while dotnet run ex
ecutes it.
To use the .NET CLI, simply open a terminal on your operating system, be it Mac, Linux or Windows. A common initial step is to try the dotnet
command, which confirms if the installation is correct by displaying the base instructions for using the CLI. If an error occurs or the command is not recognized, you may need to reinstall the .NET SDK.
# Show help on commands available in .NET CLIdotnet help
# Check the current version of the SDK in usedotnet --version
# Show detailed information about installed SDK versionsdotnet --info
# Create a new .NET project with a specific templatedotnet new <template>.
The dotnet new
command offers several templates for creating projects, depending on the type of application you want to develop:
dotnet new
command usage:# Create a new ASP.NET Core web applicationdotnet new webapp -n MyWebApplication
# Start a Blazor Server projectdotnet new blazorserver -n MyBlazorApp.
With this command-line tool and its ability to handle a diversity of platforms and project types, the .NET CLI is indispensable in any .NET developer's toolkit. As you explore and master more commands, you will be able to optimize your workflow, improve your skills, and carry out projects more efficiently. Keep exploring and expanding your knowledge in the exciting world of .NET!
Contributions 12
Questions 4
Hubo un error en el slide ya que CLI para este caso es Command-line interface.
Mis notitas de clase:
Por si a alguien no le funcione dotnet --version
solucione de esta forma, por si a alguien le pasa con la version 6.0.400
Basicamente fue eliminar la carpeta dotnet generada en el Archivos de Programa(x86)
https://stackoverflow.com/questions/73247933/how-to-fix-no-net-sdks-were-found-error-vscode
Comandos de esta clase
dotnet
dotnet --help
dotnet --version
dotnet --info
dotnet new
Para visualizar la versi贸n en macOS
dotnet --list-sdks
Todo funcionando, ahora a crear la APP.
dotnet --version
6.0.202
Comprobante dotnet y versi贸n. Adem谩s, s铆 tienes instalada una versi贸n reciente de visual studio, no necesitas descargar e instalar el .net
En una venta de consola (cmd), puedes ejecutar el dotnet --info
De tanto usar Language se le pego al profesor hahahaha.
CLR, CLS.
Pense que con instalar visual tenia el .net , pero no x_x
Examinando que todo este funcionando
Mi version de dotnet
Want to see more contributions, questions and answers from the community?