From the course: Eleven Tips for the .NET Developer

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Single file deployment: Self-contained application distribution

Single file deployment: Self-contained application distribution - .NET Tutorial

From the course: Eleven Tips for the .NET Developer

Single file deployment: Self-contained application distribution

- [Walt] In this tip, we'll look at how to publish your .NET application as a single file. That way you can give a single file to your users and they can run that and it'll contain all of the content for your application, plus all of the .NET runtime information and .NET libraries. What I want to look at in this tip is a common error I see people discussing on the internet, is that they go to create a single file published executable and it doesn't work. They need extra files. And the issue is that if you have external dependencies outside of .NET, then you have to set a switch in your publishing options, make sure that those are included in the single file. There are two projects we'll use in this solution. There is a TipsConsole, which is standalone. It doesn't have any external dependencies. And PixelSmith, which is a photo application that does have some external dependencies. So, the way you publish is you right-click and you choose Publish. Then, you're going to go ahead and…

Contents