Deployment options

There are four options for deployment. All the options are supported by the dotnet command-line interface. You can choose to copy over the app's project, let the DNX restore the packages, and run the app. A compatible DNX version has to be preinstalled; use the CLI command dotnet run for this one.

You can also let the CLI compile the project on your development machine. Copy over the assemblies and run:

Fig 08: Deployment Options

There is also the option to natively compile an app using a command-line switch. This means that instead of assemblies with IL, native binaries that can be directly executed without the help of the DNX or any .NET Framework are generated.

There is also an option to package your application into a NuGet package to easily share your project using dotnet pack. The package will contain support for all the configured frameworks in the project.json file. You can then upload it to a NuGet feed either globally or for your company only.

The final option is to let dotnet cli publish the app for you using dotnet publish.

All the required assemblies and the DNX itself is included in the deployment. As the deployed DNX is OS-specific, this option won't work without extra effort if you're deploying across operating systems.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset