简体   繁体   中英

How to suppress warnings of type “The Element X in namespace X has invalid child element …” within Microsoft.CppBuild.targets

I have a very large C# project, with over 100 warnings, all triggered by the file:

Microsoft.CppBuild.targets

Is there a way to suppress these types of warnings:

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

Other warnings start with:

The Element 'Midl' ...
The Element 'PropertyGroup' ...
The Element 'Manifest' ...
The Element 'Link' ...
The Element 'ItemGroup' ...
The Element 'ClCompile' ...

Environment

  • Visual Studio 2010 SP1
  • ReSharper

解决方法是关闭文件“ Microsoft.CppBuild.targets”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM