Create Project:
# create new project
dotnet new webapi -n MyStartApi
# ...or with output flag
dotnet new console -o Calculator
Go to created project... MyStartApi
Build:
# clean packages
dotnet clean
# build for application
dotnet build
Run:
# get packages
dotnet restore
# normal
dotnet run
# ..or in hot reload mode
dotnet watch run
Create basic gitignore file:
dotnet new gitignore
References:
- https://github.com/balta-io/2801
- https://learn.microsoft.com/pt-br/dotnet/csharp/language-reference/keywords/using-statement
- https://learn.microsoft.com/pt-br/dotnet/csharp/language-reference/keywords/internal
- https://learn.microsoft.com/pt-br/dotnet/standard/assembly/
- https://learn.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates
- https://learn.microsoft.com/pt-br/aspnet/core/fundamentals/tools/dotnet-aspnet-codegenerator?view=aspnetcore-6.0
- https://www.youtube.com/watch?v=xWTJqAp2AVw&ab_channel=CentraldotNET
- https://andrielleazevedo.wordpress.com/2011/12/11/c-namespaces/
- https://www.youtube.com/watch?v=6s4lomHKl-Q&ab_channel=MarcoDiniz
- https://www.youtube.com/watch?v=4qG9Nh_wD5Y&ab_channel=Andr%C3%A9Secco
- https://stackoverflow.com/questions/6637679/reflection-get-attribute-name-and-value-on-property