Visual Studio and Offline Deployments

I am trying to publish a self-deployment using Visual Studio. I can easily achieve this using the CLI by doing:

dotnet new mvc --auth None --framework netcoreapp1.1            
dotnet restore --runtime win81-x64      
dotnet build
dotnet publish -c release --runtime win81-x64    

These commands will create a new mvc application, restore all libraries for the win81-x64 runtime, and publish it. As a result, the deployment will contain the runtime for the .net core 1.1 / win81-x64 platform as part of the application. That way I can install it on a server where .net core 1.1 is not pre-installed.

My question is, how can I achieve this using Visual Studio 2017 publish UI? If I make a simple post, it will not contain .net core runtime files.

Thank!

+4
1

, ( ) RTM VS 2017. .

, , <RuntimeIdentifier> .csproj.

<PropertyGroup>
  <TargetFramework>netcoreapp1.1</TargetFramework>
  <RuntimeIdentifier>win81-x64</RuntimeIdentifier>
</PropertyGroup>

, , .

, .net. , .

+6

Source: https://habr.com/ru/post/1672303/


All Articles