Publishing a .NET Core application

When you build, debug, and test your application successfully, you need to publish or deploy your app. The .NET Core provides the dotnet publish command to publish your app for deployment.

To publish a .NET Core app in the Release mode, enter the following command:

    dotnet publish <ProjectName> -c Release  

There are two kinds of deployment available for .NET Core applications, which are Framework-Dependent Deployment (FDD) and Self-Contained Deployment (SCD). The first one depends on a system-wide version of .NET Core to be present before running the application, whereas the second type of deployment does not depend on any .NET Core version already installed on the system as it includes the entire .NET Core libraries and runtime, along with the resultant application files.

Let's learn more about each of the preceding deployment types with a simple demo-oriented example.

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

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