I'm trying to publish self containing deployment using Visual Studio. I can easily achieve that using CLI by running:
dotnet new mvc --auth None --framework netcoreapp1.1
dotnet restore --runtime win81-x64
dotnet build
dotnet publish -c release --runtime win81-x64
This commands will create new mvc application, restore all libraries for win81-x64 runtime and will publish it. As a result deployment will contain runtime for .net core 1.1 / win81-x64 platform as part of the application. This way I can install it on the server where .net core 1.1 is not pre-installed.
My question is how can I achieve that using Visual Studio 2017 publish UI? If I do simple publish it will not include .net core runtime files.
Thanks!