[Visual Studio 2017][.NET Core 2.0] .NET Core 2.0 self-contained development in Visual Studio 2017 | CodingSchnauzer
 

[Visual Studio 2017][.NET Core 2.0] .NET Core 2.0 self-contained development in Visual Studio 2017

| Posted in Programming

In past, if we would like to build .NET Core project and get the .exe file (self-contained development) via Visual Studio, we have to add following code to .csproj.

<PropertyGroup>
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
</PropertyGroup>

now, with Visual Studio 2017 + .NET Core 2.0,  You could try following step:

Operating steps

Step 1. Right click project and select publish

Step 2. Select folder → click publish(or create profile, it is ok)

Step 3. click configure → Deployment mode:self-contained → runtime target:win-x64 -> click save

Step 4. click publish, you will find .exe file under your target location

Btw, you also see the detail in FolderProfile.pubxml. Hope this helps. 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *

CodingSchnauzer ©2020. All Rights Reserved.