Basically I would like to set AssemblyTitle in my constructor, the reason of doing this is because I have several versions of program and they all sharing same AssemblyInfo.cs
I am looking for something like that
AssemblyTitleAttribute title = "Full Version";
but this one doesn’t work, any ideas?
The attribute is a complie time constant so it cannot be “In the constructor”, you have two options:
[assembly: AssemblyTitle("Sandbox Console")](put it before you declare the namespace)#ifin the AssemblyInfo.cs to choose the name and set up your build environment to define the directive in yourConditional Compilation Symbolsin theBuildtab of Properties.// AssemblyInfo.cs //(snip) [assembly: AssemblyCopyright("Copyright © 2011")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] #if FULL_VERSION [assembly: AssemblyTitle("XYZ App (Full Version)")] #else [assembly: AssemblyTitle("XYZ App (Trial Version)")] #endif