.NET Core dotnet 命令

dotnet new

dotnet restore

dotnet watch run 开发阶段运行后,当代码发生变动的时候自动执行编译

dotnet run 执行程序

dotnet xxx.dll 也是执行程序

dotnet build 编译代码

dotnet test

dotnet pack

dotnet publish 默认发布,发布后定位到publish目录使用 dotnet xx.dll 执行应用。

可以在项目目录下新建publish.bat文件,写入下面命令,就可以双击直接执行来快速发布项目

dotnet publish --framework netcoreapp3.1 --output "D:\NET Core项目\项目xxx\publish" --configuration Release

 

posted @   以德为先  阅读(253)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
点击右上角即可分享
微信分享提示