...

/

Publishing Code for Deployment

Publishing Code for Deployment

Learn about different deployment strategies in .NET and how to create a console app that can run on multiple operating systems.

If we write a novel and want others to read it, we must publish it. Most developers write code for other developers to use in their own projects or for users to run as an app. To do so, we must publish our code as packaged class libraries or executable applications.

There are three ways to publish and deploy a .NET application. They are:

  • Framework-dependent deployment (FDD)
  • Framework-dependent executable (FDE)
  • Self-contained

Deployment strategies

If we choose to deploy our application and its package dependencies but not .NET, we rely on .NET already being on the target computer. This works well for web applications deployed to a server because .NET and many other web applications are likely already on the server.

Framework-dependent deployment

...