Welcome Guest Search | Active Topics | Members | Log In | Register

C# Manifest Files Options · View
Xarzu
Posted: Monday, January 14, 2008 5:49:51 PM


Rank: Newbie
Groups: Member

Joined: 1/9/2008
Posts: 4
Points: 12
Location: USA
Think
Does anyone know how to declare Manifest Files in the Visual Studio IDE for C#?
stoney77
Posted: Thursday, January 17, 2008 9:12:36 AM


Rank: Administration
Groups: Administration

Joined: 9/17/2007
Posts: 14
Points: -11
Location: Nottingham
Have you tried the following:

http://support.microsoft.com/kb/944276

Agilis Software Forum Administrator
Xarzu
Posted: Tuesday, January 22, 2008 12:19:04 AM


Rank: Newbie
Groups: Member

Joined: 1/9/2008
Posts: 4
Points: 12
Location: USA
stoney77 wrote:
Have you tried the following:

http://support.microsoft.com/kb/944276


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/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.


Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.1 (NET v2.0) - 9/10/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.075 seconds.