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 - .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
-
-
-
(Locked)
Single file deployment: Self-contained application distribution4m 31s
-
(Locked)
Flatten sequence with LINQ SelectMany1m 52s
-
(Locked)
Extend the DateOnly type with extension methods4m 1s
-
(Locked)
Humanizer: Transform data into human-friendly text5m 5s
-
(Locked)
Return read-only collection with AsReadOnly method2m 18s
-
(Locked)
Build Linux and Windows path strings4m 19s
-
(Locked)
Create fake test data with the Bogus package7m 18s
-
(Locked)
Make a version endpoint for a web API3m 54s
-
(Locked)
Count unicode characters correctly in String3m 38s
-
(Locked)
Determine shared key values with the LINQ ToLookup method4m 53s
-
(Locked)
Create a Zip archive file2m 48s
-
(Locked)
-