Skip to content

Instantly share code, notes, and snippets.

@acerzhou
Last active August 18, 2020 11:07
Show Gist options
  • Save acerzhou/00e20a6a4d6abf6f0f28932af52e92ce to your computer and use it in GitHub Desktop.
Save acerzhou/00e20a6a4d6abf6f0f28932af52e92ce to your computer and use it in GitHub Desktop.
[DotNet Core CLI] some useful dotnet core cli #dotnetcore #cli
# Installation
sudo apt-get update
sudo apt-get install azure-functions-core-tools-3
# create function app
func init LocalFunctionProj --dotnet
# Create an new console app in current folder
dotnet new console --name <project_name> --output .
# Add Nuget package
dotnet add package <package_name> --verion <specific_version>
# Build proejct
dotnet build
# Create an WebApi in current folder
dotnet new webapi --output . --name <name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment