Quantcast
Viewing all articles
Browse latest Browse all 4

.NET Core

@EN59CVH,

Since you have found the answer to this, you can mark this as answer which is benefit to other communities who has the same problem.

Besides, If you want to generate the .exe for the .Net Core to run directly, you can follow below steps:

step 1: remove "type": "platform", from Project.json underframeworks section

step 2: add run time section to your project.json. Note each section is separeted by a comma. Add your runtime. below is just an example for win 10.

"runtimes": {"win10-x64": {}      
     }

step 3: dotnet build -r win10-x64 - or just build

step4: you can notice .exe created under debug/netcore/win10/

Note: All above is for Visual Studio 2015, for the Visual Studio 2017, you just need to add the run time section in the peoject file, then build it with command line:

<PropertyGroup>   <OutputType>Exe</OutputType>  <TargetFramework>netcoreapp1.0</TargetFramework><RuntimeIdentifiers>win10-x64</RuntimeIdentifiers> </PropertyGroup>
dotnet build -r win10-x64

Hope this can help you.

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


Viewing all articles
Browse latest Browse all 4

Trending Articles