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.

.NETCore apps cannot specify a Windows application manifest and other things that must go in exe

See original GitHub issue

dotnet.exe does not contain an application manifest, nor does the stripped down version when building a standalone app. The result is that applications cannot specify supportedOS to tell Windows they want to run without any OS version compat shims.

On desktop the way this works is that an application can add a manifest file to the app project (Add new item > Application manifest file) and that gets embedded in the exe by the compiler. Since .NETCore apps don’t actually build the EXE we’d have to do something different.

I propose we change the host to include all the latest supportedOS entries at the time we ship. This is consistent with what we do for exe’s in desktop. We could then allow the application to specify a manifest then the SDK could replace the one in the host when building a standalone app.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
nguerreracommented, Sep 5, 2018

I think we should track whether you get an apphost by default separately from the work to put more stuff in an apphost.

1reaction
ericstjcommented, Jul 2, 2018

This needs to be done for .NETCore 3.0. There are a lot of things that should be transferred from the app to the host in the case of a standalone app in order to meet people’s expectations. Here’s a partial list:

  1. Sub system bit (EG: windows vs console).
  2. Windows manifest
  3. Version
  4. Icon

1 & 2 will directly impact the desired functionality of .NET Core 3.0. There may be more. /cc @JeremyKuhne

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application manifests - Win32 apps
An application manifest is an XML file that describes and identifies the shared and private side-by-side assemblies that an application ...
Read more >
Adding a manifest file to my application still doesn't give it ...
As described in the answer of this question, I added a manifest file to my .NET Core application which I'm running later by...
Read more >
Deep-dive into .NET Core primitives: deps.json ...
I learned to program with gcc, C++, and vim. When I started working with C# and .NET, clicking the “Start” button in Visual...
Read more >
Why isn't my ASP.NET Core app in Docker working?
In this post I describe a problem where my ASP.NET Core app in Docker wasn't responding to requests. This post debugs and diagnoses...
Read more >
A .NET Core 3.1 or .NET 5.0 application installed by ...
NET application is launched, the dotnet runtime may use a dependencies manifest file (<ProjectName>.deps.json) to locate these assemblies.
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