简体   繁体   English

获取Vs 2017使用的'dotnet publish'命令

[英]Get 'dotnet publish' command used by Vs 2017

In a .Net Core +Angular project how do I publish it from command line getting the same result as publish from VS 2017? 在.Net Core + Angular项目中,如何从命令行发布与从VS 2017发布相同的结果?

tried 试着

dotnet publish --configuration Release --runtime win-x64 dotnet发布-配置发布-运行时win-x64

but not getting the same result,found lots of dll files not present in publish from VS 但没有得到相同的结果,发现大量的dll文件不存在从VS发布

thanks 谢谢

You need to publish the project using the netcoreapp2.1 framework without -- runtime win-x64 as below 您需要使用netcoreapp2.1框架而不使用netcoreapp2.1 runtime win-x64来发布项目,如下所示

dotnet publish --framework netcoreapp2.1 --configuration Release

Default publishing settings in VS 2017 will target framework as below VS 2017中的默认发布设置将针对以下框架

VS 2017发布设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM