- Create Console project
dotnet new console -n consoleApp
- launch.json 中添加配置
选择.NET Core Launch (console)
"configurations": [ { "name": ".NET Core Launch (console)", "type": "coreclr", "request": "launch", "preLaunchTask": "build", // If you have changed target frameworks, make sure to update the program path. "program": "${workspaceFolder}/consoleApp/bin/Debug/netcoreapp2.2/consoleApp.dll", "args": [], "cwd": "${workspaceFolder}/consoleApp", // For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window "console": "internalConsole", "stopAtEntry": false }, ...
- Build
cd consoleApp dotnet build #不指定project的情况下自动寻找csproj文件 #output 路径 #consoleApp -> ${workspaceFolder}\consoleApp\bin\Debug\netcoreapp2.2\consoleApp.dll
- Run
dotnet run
- publish
dotnet publish #output 路径 #consoleApp -> ${workspaceFolder}/${projectFolder}\bin\Debug\netcoreapp2.2\consoleApp.dll
- Create
dotnet new webapi -n webapiApp
- launch.json 中添加配置
- Build
- Run
- Publish
- Create
dotnet new react -n reactApp
- launch.json 中添加配置
- Build
- Run
- Publish