How to suppress specific MSBuild warning

前端 未结 6 1680
悲&欢浪女
悲&欢浪女 2020-11-28 07:03

Is there any way to disable specific MSBuild warning (e.g. MSB3253) when running MSBuild from command line? My build script calls msbuild.exe much the following way:

6条回答
  •  臣服心动
    2020-11-28 07:15

    For those Googling this now (like me): the upcoming MSBuild 15.0 (to be released with Visual Studio 2017, I presume) will finally implement the /NoWarn option to suppress specific warnings (as well as /WarnAsError to treat either specific warnings or all warnings as errors).

提交回复
热议问题