Getting a C# program with a manifest file to run in the debugger


OSNN Addict
25 Aug 2005
Getting a C# program with a manifest file to run in the debugger
How do I declare a manifest file in the Visual Studio IDE for C# so that I can debug the resulting code?

I have been able to add the manifest file, to the exe after I have built the program. But then, when I try to debug my C# code, the program crashes at the point where a function call is made that is used by the DLL that the manifest file calls.

I tried the first in the "How to embed a manifest in an assembly: let me count the ways..." ( link and it failed to produce an executable that I could step through the IDE debugger. And I followed the steps carefully and I had no build errors.
I followed the steps outlined here for including a manifest file:
The executable runs from the command line after I include the manifest file. But when I open up the debugger and try to run the program through the IDE, it has the same problem as if it does not recognize the manifest file linked to it.

The way I link the manifest file to the executable is by first building the executable and then I close the project. Then I open the executable as a separate file and then I attach the manifest file as a resource to the executable.

The executable can run then, by running it from an explorer window (command line) but if I open the project again, it will not work.
I got the execuatable produced in the "let me count the ways" to work the same way. But I need to step through the code.

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Latest member