34

Support Single-File Apps in .NET 5

 4 years ago
source link: https://github.com/dotnet/runtime/issues/36590
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The goal of this effort is enable .Net-Core apps to be published and distributed as a single executable.

Goals

The .Net 5.0 single file solution should be:

  • Widely compatible: Apps containing IL assemblies, ready-to-run assemblies, composite assemblies, native binaries, configuration files, etc. can be packaged into one executable.
  • Can run managed components of the app directly from bundle, without need for extraction to disk.
  • Usable with debuggers and tools.

User Experience

Here's the overall experience for publishing a HelloWorld single-file app in .net 5:

  • Framework-dependent

    • Publish command:
    • Published files: ,
  • Self-contained (Linux)

    • Publish command:
    • Published files: ,
  • Self-contained (Windows):

    • Publish command:
    • Published files: , , , , ,
  • Self-contained (Windows) with bundled native components:

    • Publish command:
    • Published files: ,

Design Document

A detailed discussion of the goals, non-goals, related-work, options, design decisions, and implementation details of supporting single-file apps is available in this design document

Tracking Progress


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK