如何在Microsoft.CppBuild.targets中禁止"命名空间X中的元素X具有无效的子元素..."类型的警告

Con*_*ngo 1 c# .net-4.0 visual-studio-2010

我有一个非常大的C#项目,有超过100个警告,全部由文件触发:

Microsoft.CppBuild.targets
Run Code Online (Sandbox Code Playgroud)

有没有办法抑制这些类型的警告:

The element 'ResourceCompile' in namespace 
'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 
'MinimalRebuildFromTracking' in namespace 
'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements
expected: 'Culture, PreprocessorDefinitions, UndefinePreprocessorDefinitions,
AdditionalIncludeDirectories, IgnoreStandardIncludePath, ShowProgress,
NullTerminateStrings, SuppressStartupBanner, ResourceOutputFileName' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'.  C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets 172 10
Miscellaneous Files
Run Code Online (Sandbox Code Playgroud)

其他警告始于:

The Element 'Midl' ...
The Element 'PropertyGroup' ...
The Element 'Manifest' ...
The Element 'Link' ...
The Element 'ItemGroup' ...
The Element 'ClCompile' ...
Run Code Online (Sandbox Code Playgroud)

环境

  • Visual Studio 2010 SP1
  • ReSharper的

Con*_*ngo 6

解决方案是关闭文件"Microsoft.CppBuild.targets".