question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[API Proposal]: Compiled framework-dependent `.exe` should automatically download and install appropriate runtime

See original GitHub issue

Background and motivation

Hey, So I come across a big problem that a lot of people I know complain about: Bundle size of self-contained executables. These can reach upwards of 80 MB for a decently sized app, and that can be a huge problem, more bandwidth use, and entirely removes the benefit of having a shared system runtime that other apps can use.

My proposal is that the compiled framework-dependent executable includes an auto-installer for the runtime, as this would make my (example) 80 MB app just 15-20 MB. AOT and trimming are not always an option, and I would much prefer a shared runtime as .NET is “intended” to be used.

API Proposal

When the user starts the .net .exe, if the runtime is not installed, they should be met with a prompt to automatically install dependencies on the system

API Usage

none

Alternative Designs

No response

Risks

No response

Issue Analytics

  • State:open
  • Created 5 months ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vitek-karascommented, Apr 20, 2023

I know the experience has been somewhat lacking in the past, but I think we’ve made some great improvements recently. For example: https://github.com/dotnet/runtime/pull/78087

0reactions
agockecommented, Apr 20, 2023

Moving to installer, as this is more a question of product acquisition. .NET currently doesn’t have a “net installer”

Read more comments on GitHub >

github_iconTop Results From Across the Web

[API Proposal]: Compiled framework-dependent ...
[API Proposal]: Compiled framework-dependent .exe should automatically download and install appropriate runtime #16171.
Read more >
NET application publishing overview
Learn about the ways to publish a .NET application. .NET can publish platform-specific or cross-platform apps. You can publish an app as ...
Read more >
Build .NET Core console application to output an EXE
NET Core 2.0 only: First, add the runtime identifier of the target ... the latest .net5 SDK will be automatically installed on your...
Read more >
PowerServer 2022 R2 Help Deploying Web APIs to IIS
A Framework-Dependent package will only include the app assembly files and its dependencies. Users have to install the .NET Core runtime in order...
Read more >
Deploy Self-Contained .NET Apps Without Packaging the ...
NET runtime automatically. All the user has to do is press "Yes" when prompted and the bootstrapper will download and install the correct ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found