确定指标的MSBuild - 燮preSS警告消息的具体解决方案 [英] MSBuild Defintion - Suppress Warning Messages for Specific Solutions
问题描述
在MSBuild的生成定义,我想用晚餐preSS所有警告输出特定的C#和vb.net解决方案的消息。我想的警告为特定溶液返回0。我一直在阅读,你可以修复的MSBuild参数范围内使用这个,但NoWarn我找不到一个完整的解决方案语法
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个错误, 500报警(S)
$/Etc/Etc1/Etc2/Etc3/Etc4/Solution.sln - 0 error(s), 500 warning(s)
MSBuild的参数:/p:NoWarn\"Solution.sln
MSBuild Arguments: /p:NoWarn"Solution.sln"
**有生成的多个解决方案,但我只想只针对特定的解决方案
**There are multiple solutions within the Build but I only want to target only specific solutions
推荐答案
要想喝preSS为特定解决方案的所有警告信息,你需要使用 /属性:WarningLevel = 0 的MSBuild参数。打开生成定义,去处理 - > 2.Build - > 5.Advanced - > MSBuild的说法。
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.
这篇关于确定指标的MSBuild - 燮preSS警告消息的具体解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!