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.

Application executable is not marked as Windows 10 compatible in the default manifest

See original GitHub issue

The manifest of self-contained apps does not contain Windows 10 supportedOS element. It means that self-contained applications run with compatibility shims by default.

The proposal based on the offline discussion:

  • Stop embedding the manifest in Roslyn for .NET 5 by passing the right command line option to the C# compiler (-nowin32manifest). There is a MS build property that drives this that we should set by default for .NET 5+, unless the app has explicitly provided manifest.
    • This is going to make apps on Linux a bit smaller. The Windows manifest in app.dll is a dead weight on Linux.
  • Attach Win10 compatible manifest to apphost by default if there is not one in app.dll.

Related:

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
agockecommented, Aug 3, 2020

@mateoatr Could you take a look at this?

0reactions
miloushcommented, Apr 24, 2023

Thanks, I think it would be good to have the default manifest updated. Doesn’t have to be for .NET 8 obviously, but comctl6 is supported on all Windows versions supported by .NET, and Windows 10 is the only supported OS since .NET 7. Not quite sure why that is not reflected in the default manifest. For WPF we could add a build task to patch the default manifest during compilation, but I was interested first why shouldn’t everyone simply have a better manifest out of the box.

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 >
App (executable) manifest - Compatibility Cookbook
The compatibility section of the app manifest helps the operating system determine the versions of Windows an app was designed to target.
Read more >
Targetting Win 10 from app.manifest C# - Stack Overflow
The problem is, if you have no clean Win 10 manifest it may happen that compatibility assistent will define some programs (e.g. which...
Read more >
Compatibility Fixes for Windows 10, Windows 8 ...
Find compatibility fixes for all Windows operating systems that have been released from Windows Vista through Windows 10.
Read more >
How to add an assembly manifest to a .NET executable?
From the project properties screen, select Application. Select radio option Icon and Manifest. Under Manifest leave the default option of Embed ...
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