Click here to Skip to main content
15,884,425 members
Home / Discussions / C#
   

C#

 
Generalassembly binding log file Pin
godzooky6-May-04 4:51
godzooky6-May-04 4:51 
GeneralRe: assembly binding log file Pin
Heath Stewart6-May-04 5:20
protectorHeath Stewart6-May-04 5:20 
GeneralRe: assembly binding log file Pin
godzooky6-May-04 5:24
godzooky6-May-04 5:24 
GeneralRe: assembly binding log file Pin
Heath Stewart6-May-04 5:34
protectorHeath Stewart6-May-04 5:34 
GeneralRe: assembly binding log file Pin
godzooky6-May-04 5:49
godzooky6-May-04 5:49 
GeneralRe: assembly binding log file Pin
Heath Stewart6-May-04 6:36
protectorHeath Stewart6-May-04 6:36 
GeneralC# windows forms app and the theme manifest file Pin
Nish Nishant6-May-04 4:31
sitebuilderNish Nishant6-May-04 4:31 
GeneralRe: C# windows forms app and the theme manifest file Pin
Heath Stewart6-May-04 5:16
protectorHeath Stewart6-May-04 5:16 
An embedded resources is embedded in the assembly and referenced by the assembly MANIFEST (like a Java JAR manifest). This is not the same as a resources in the .rsrc section of a PE/COFF executed.

For now, you have to do either of the two things you're doing now. In VS.NET 2005, IIRC, the ability to add the .manifest file to the Win32 executables resources does exist using the IDE.

Without using the IDE, there is another way. You can use the /win32res:<file> switch on the C# compiler (csc.exe, of course) to specify the .res file. The only problem with this is that if you use any automatic versioning (using an asterisk (*) in your AssemblyVersionAttribute - not usually a good idea anyway since versions matter with .NET assemblies) you have to keep this up to date.

If you use a build tool like NAnt, you should be able to use a more complex build script and still use the equivalent of the /win32res switch.

FYI, if you embed your manifest after the assembly is compiled and you signed it (a good idea anyway for many reasons) you'll need to resign it. It's also a good idea to set AssemblyDelaySignAttribute to false and us sn.exe -Vr yourassembly.(dll|exe) to skip verification so you can test it.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: C# windows forms app and the theme manifest file Pin
Nish Nishant6-May-04 8:39
sitebuilderNish Nishant6-May-04 8:39 
QuestionHow to get a point within a circle Pin
Alan Zhao6-May-04 4:16
Alan Zhao6-May-04 4:16 
AnswerRe: How to get a point within a circle Pin
Broken God6-May-04 4:19
Broken God6-May-04 4:19 
AnswerRe: How to get a point within a circle Pin
Bill Dean6-May-04 4:57
Bill Dean6-May-04 4:57 
AnswerRe: How to get a point within a circle Pin
SimonS6-May-04 5:30
SimonS6-May-04 5:30 
AnswerRe: How to get a point within a circle Pin
Alan Zhao6-May-04 6:21
Alan Zhao6-May-04 6:21 
GeneralRe: How to get a point within a circle Pin
SimonS6-May-04 6:30
SimonS6-May-04 6:30 
GeneralRe: How to get a point within a circle Pin
Alan Zhao6-May-04 7:01
Alan Zhao6-May-04 7:01 
GeneralRe: How to get a point within a circle Pin
Bill Dean6-May-04 7:22
Bill Dean6-May-04 7:22 
GeneralRe: How to get a point within a circle Pin
Alan Zhao6-May-04 17:28
Alan Zhao6-May-04 17:28 
GeneralA question about SetForegroundWindow Pin
Member 9401256-May-04 4:15
Member 9401256-May-04 4:15 
GeneralRe: A question about SetForegroundWindow Pin
Stefan Troschuetz6-May-04 8:42
Stefan Troschuetz6-May-04 8:42 
GeneralSending e-mail from Windows Forms Pin
mikker_1236-May-04 4:02
mikker_1236-May-04 4:02 
GeneralRe: Sending e-mail from Windows Forms Pin
Heath Stewart6-May-04 4:18
protectorHeath Stewart6-May-04 4:18 
GeneralRe: Sending e-mail from Windows Forms Pin
mikker_1237-May-04 9:03
mikker_1237-May-04 9:03 
GeneralRe: Sending e-mail from Windows Forms Pin
Heath Stewart7-May-04 9:10
protectorHeath Stewart7-May-04 9:10 
GeneralJPEG TO BITMAP Pin
Member 6910895-May-04 14:43
Member 6910895-May-04 14:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.