Dotnet Core related commands

 $ dotnet --version 

to check version of Dotnet SDK

$ dotnet new --list 

for available options with new

$ dotnet new mvc

creates an mvc app in the current folder

$ dotnet new mvc -o  <projectname>

creates mvc project under the projectname folder

$ dotnet add package npgsql

add the package npgsql is .NET package for PostgresSQL.

$ dotnet run

This command run the debug instance can be seen loacallly

$ dotnet publish --configuration Release

this command creates publishable folder in projectname\bin\Release\net6.0\publish\

just copy the contents of this folder to server root folder

Comments

Popular posts from this blog

Flutter Scratch Card