I’ve always considered it a best practive to crank the warning level of the compiler as high as it will go and to set warnings to be errors (so they break the build). This is a really good way to ensure that your team always writes ‘solid’ code because often warnings have valid risks associated with them.
Is it possible set warnings to be flagged as errors in Unity? And is it also possible to crank up warning level?
When using .NET 2.0 subset, -warnaserror+ will produce the following internal compiler errror:
Internal compiler error. See the console log for more information. output was:error CS0618: System.Security.Permissions.SecurityPermissionAttribute' is obsolete: CAS support is not available with Silverlight applications.’
It seams a Unity internal problem. Any one knows how to fix it?