| | |
Getting a C# program with a manifest file to run in the debugger
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
Getting a C# program with a manifest file to run in the debugger
----------------------------------------------------------------
Does anyone know how to declare Manifest Files in the Visual Studio IDE for C#?
I tried the first in the "How to embed a manifest in an assembly: let me count the ways..." (http://blogs.msdn.com/cheller/archiv...-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/944276
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.
----------------------------------------------------------------
Does anyone know how to declare Manifest Files in the Visual Studio IDE for C#?
I tried the first in the "How to embed a manifest in an assembly: let me count the ways..." (http://blogs.msdn.com/cheller/archiv...-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/944276
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.
![]() |
Similar Threads
- Need help fast! *HJT log posted* (Viruses, Spyware and other Nasties)
- about:blank message error (Viruses, Spyware and other Nasties)
- Trojan Desktophijack.B and others (Viruses, Spyware and other Nasties)
- World Antispy present in my PC! Help!! (Viruses, Spyware and other Nasties)
- please help me remove winfix. here is my log file from Hijack this (Viruses, Spyware and other Nasties)
- I got some problems once again. (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: Nee help with sending text to child windows
- Next Thread: Read Between Certain Tags
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn cast check checkbox client combobox communication control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum excel file focus form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml





