我正在尝试使用Visual Studio 发布包含部署的自我.我可以通过运行以下命令轻松实现:
dotnet new mvc --auth None --framework netcoreapp1.1
dotnet restore --runtime win81-x64
dotnet build
dotnet publish -c release --runtime win81-x64
Run Code Online (Sandbox Code Playgroud)
此命令将创建新的mvc应用程序,还原win81-x64运行时的所有库并将其发布.因此,部署将包含.net核心1.1/win81-x64平台的运行时作为应用程序的一部分.这样我就可以在没有预安装.net core 1.1的服务器上安装它.
我的问题是如何使用Visual Studio 2017发布UI实现这一目标?如果我做简单的发布,它将不包括.net核心运行时文件.
谢谢!