How to set "Special Build" attribute in Assembly?
-
I'd like to set a "Special Build" property/attribute in the Assembly of my project (or in a resource file) -- something that gets compiled in. I've looked around the net for this and it's really not clear to me. I'm using Visual Studio.NET 1.0 and my App is standard C#. I've actually got two flavors of the app (one command line and one GUI) and I need to set the "Special Build" string differently for each app (E.g., I don't want to do it in code, I just want to set the values differently in either resource files or in the AssemblyInfo.cs file). Thanks for any tips!
-
I'd like to set a "Special Build" property/attribute in the Assembly of my project (or in a resource file) -- something that gets compiled in. I've looked around the net for this and it's really not clear to me. I'm using Visual Studio.NET 1.0 and my App is standard C#. I've actually got two flavors of the app (one command line and one GUI) and I need to set the "Special Build" string differently for each app (E.g., I don't want to do it in code, I just want to set the values differently in either resource files or in the AssemblyInfo.cs file). Thanks for any tips!
I think you need to write an .rc file, compile it with
rc.exe
, then use the/win32res
switch to compile it into the assembly. Not tested, no warranty, usual disclaimers apply... Stability. What an interesting concept. -- Chris Maunder