MSBuild.CSharp.DefineConstants (nuget): MSBuild task to generate a managed assembly that defines "preprocessor" constants
Keywords: MSBuild|preprocessor|C#