Add this to your project.json file:
"compilationOptions": { "emitEntryPoint": true },
It will create MyApp.exe on Windows (in bin / Debug) or executable files on other platforms.
Change: 01/30/2017
It is not big enough. You now have the opportunity between Framework-dependent deployment and standalone deployment, as described here .
Short form:
Platform Dependent Deployment (.net Core Present on Target System)
- Launch dll using the dotnet command line utility
dotnet MyApp.dll
Offline deployment (all components, including the .net kernel runtime, are included in the application)
- Remove
"type": "platform" from project.json - Add runtime section to project.json
- Assembly with the target operating system
dotnet build -r win7-x64 - Run the generated
MyApp.exe
project.json file:
{ "version": "1.0.0-*", "buildOptions": { "emitEntryPoint": true }, "frameworks": { "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "version": "1.0.1" } } } }, "imports": "dnxcore50", "runtimes": { "win7-x64": {} } }
Fabian
source share