MSBuild Defintion - Suppress Warning Messages for Specific Solutions

女生的网名这么多〃 提交于 2019-12-10 12:04:40

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!