问题
Within the MSBuild Build Definitions, I'm trying to suppress all warning messages output for specific C# and vb.net solutions. I want the warnings to return 0 for a particular solution. I've been reading that you can fix this using NoWarn within MSBuild Arguments but i can't find the syntax for an entire solution
$/Etc/Etc1/Etc2/Etc3/Etc4/Solution.sln - 0 error(s), 500 warning(s)
MSBuild Arguments: /p:NoWarn"Solution.sln"
**There are multiple solutions within the Build but I only want to target only specific solutions
回答1:
To suppress all warning messages for a specific solution, you need to use /property:WarningLevel=0 MSBuild argument. Open build definition, go to Process -> 2.Build -> 5.Advanced -> MSBuild argument.
来源:https://stackoverflow.com/questions/32571416/msbuild-defintion-suppress-warning-messages-for-specific-solutions