To use an SCD for your application to run in a system that doesn't have .NET Core installed, you need to first edit your project file to make some changes. In this type of deployment, the core libraries will also be copied with your application, making the deployment package larger than expected.

For SCD, first open your project file and perform the following steps:

  1. In Visual Studio 2019, right-click on the project in Solution Explorer and click the Edit <AppName>.csproj menu item. In our case, it's Edit ConsoleApp.csproj, as shown in the following screenshot:
  1. As shown in the following screenshot, enter the following tag, <RuntimeIdentifiers>win10-x64;Ubuntu.14.04-x64</RuntimeIdentifiers> ...

Get Mastering Visual Studio 2019 - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.