[Visual Studio 2017][.NET Core 2.0] .NET Core 2.0 self-contained development in Visual Studio 2017
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.
now, with Visual Studio 2017 + .NET Core 2.0, You could try following step:
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. 🙂