Monthly Archives: June 2013

C# compiler error CS0182 when building via TeamCity

When running a build via TeamCity, I started to get the following exception: CSC error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type The same code built fine in Visual Studio 2012, and nothing had changed on the build server so clearly something […]

Posted in Fixes | Tagged , , | 34 Responses