Re: C# and native resources
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Wed, 13 Feb 2008 23:35:38 +0100
"Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx> wrote in message news:e4gEk6obIHA.5900@xxxxxxxxxxxxxxxxxxxxxxx
Problem: C# 2.0 doesn't imbed a UAC manifest in the EXE files that it produces.
Problem: The suggested solution on MSDN is unworkable (manually opening the EXE using VS as a resource editor and inserting the manifet resource).
Problem: Changing the C# project to explicitly link a .RES file suppresses the generation of the native VS_VERSIONINFO resource by the C# compiler.
All in all, MS made it harder than necessary to produce a Vista-compliant EXE from C# 2.0.
So how have people solved this problem?
It seems like some kind of command-line tool to insert the manifest resource after the fact would be a good solution - there are a variety of such tools on that market, all of which seem overpriced for such a simple task.
Any free tools out there that can insert a manifest resource into an existing EXE?
-cd
Carl, the Windows SDK comes with a tool called the "Microsoft (R) Manifest Tool" the PE file is: mt.exe.
You can use this tool to embed a manifest in a post build step in VS2005.
VS2008 supports this by default, see the project settings.
Willy.
.
- Follow-Ups:
- Re: C# and native resources
- From: Carl Daniel [VC++ MVP]
- Re: C# and native resources
- References:
- C# and native resources
- From: Carl Daniel [VC++ MVP]
- C# and native resources
- Prev by Date: Re: How to use Background worker with windows forms c# app?
- Next by Date: Can't specify a location for new class code file on class diagram>new class dialog?
- Previous by thread: C# and native resources
- Next by thread: Re: C# and native resources
- Index(es):
Relevant Pages
|