Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I set AssemblyConfigurationAttribute?

Is it good practice to set AssemblyConfigurationAttribute in .Net assembly files?

like image 393
John Simons Avatar asked Nov 20 '12 22:11

John Simons


1 Answers

I have not found this to be particularly useful (since none but the most low-level tools display this information) and I have never seen it used in production code I have worked on.

Regardless, if you want it, just add the following lines to your AssemblyInfo.cs file:

#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif
like image 70
Jeff Prince Avatar answered Sep 27 '22 23:09

Jeff Prince