Jump to content

C# Manifest Files


complete

Recommended Posts

Does anyDoes anyone know how to declare Manifest Files in the Visual Studio IDE for C#?one know how to declare Manifest Files in the Visual Studio IDE for C#?

Link to comment
Share on other sites

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..." (http://blogs.msdn.com/cheller/archive/2006/08/24/how-to-embed-a-manifest-in-an-assembly-let-me-count-the-ways.aspx) 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:http://support.microsoft.com/kb/944276The 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.========I hear some talk about the vshost. How does this work? Do I just renamethe manifest file as vshost and put it in as a resource?csharp040.png========Also, what is the Click Once Install method?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...