Make defined constants consistent between build.cmd and Visual Studio.
Currently build.cmd defines CODE_ANALYSIS when building, but Visual Studio does not. This discrepancy results in problems running build.cmd after building in Visual Studio, because an assembly built without CODE_ANALYSIS loses its SuppressMessage attributes.
Note that the official build already defines this constant, so there's no behavioral difference in that case. This change only affects builds in VS, allowing subsequent FxCop runs to work correctly.
↧