I have a question that I do not know if it can be resolved. I have one C # project in Visual Studio 2005, and I want to create different DLL names depending on the preprocessor constant. At this moment I have a preprocessor constant, two snk files and two guid collectors. I also create two configurations (Debug and Debug Preprocessor), and they compile fine using the appropriate snk and guid.
#if PREPROCESSOR_CONSTANT
[assembly: AssemblyTitle("MyLibraryConstant")]
[assembly: AssemblyProduct("MyLibraryConstant")]
#else
[assembly: AssemblyTitle("MyLibrary")]
[assembly: AssemblyProduct("MyLibrary")]
#endif
Now I have to put two assemblies in the GAC. The first assembly was added without problems, and the second is not.
What can I do to create two or more different assemblies from the same Visual Studio project?
Is it possible that I forgot to include a new line in "AssemblyInfo.cs" to change the name of the DLL depending on the preprocessor constant?