在我的VS2010中,当我构建我的解决方案时,在文件Microsoft.Common.Targets中有超过100个警告。当我尝试构建、发布或运行我的程序时,我只会得到这些警告,但是当我双击它以获取更多信息时,Microsoft.Common.Targets弹出窗口就会出现,并且我就会得到所有的警告。
这个文件Microsoft.Common.Targets是 .net framework 的一部分,具有 MSBuild 内置目标等。在属性窗口中,它有适当的模式关联。
一些示例警告(其中2个):
这个文件Microsoft.Common.Targets是 .net framework 的一部分,具有 MSBuild 内置目标等。在属性窗口中,它有适当的模式关联。
一些示例警告(其中2个):
Warning 2 The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'CustomBeforeMicrosoftCommonTargets' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 22 10 Miscellaneous Files
Warning 3 The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element '_OriginalConfiguration' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 60 10 Miscellaneous Files
为什么这个文件突然出现在我的编辑器中,而且它并不是我的项目的一部分,如何告诉 Visual Studio 在构建时忽略这个框架文件。