c# - 在 Visual Studio 2010 中使用目标构建时收到大量警告

标签 c# visual-studio build target

我正在尝试构建一些代码,但在目标文件中收到很多警告,如下所示:

Warning 12  The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' 
has invalid child element 'TCS_Compile' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. 
List of possible elements expected: 
'Item, Reference, COMReference, COMFileReference, Xdcmake, Bscmake, ClCompile,
 ClInclude, Midl, ResourceCompile, PreLinkEvent, CustomBuildStep, Manifest, 
ProjectConfiguration, NativeReference, ProjectReference, Compile, EmbeddedResource, 
Content, Page, Resource, ApplicationDefinition, None, BaseApplicationManifest, 
Folder, Import, Service, WebReferences, WebReferenceUrl, FileAssociation, 
BootstrapperFile, PublishFile, CodeAnalysisDependentAssemblyPaths, 
CodeAnalysisDictionary, CodeAnalysisImport, Link, ResourceCompile, PreBuildEvent, 
PostBuildEvent' 
in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.

有什么办法可以解决这些问题吗?

最佳答案

我也有这个问题。经过一番谷歌搜索,发现一个建议关闭VS中的所有编辑器窗口,然后重建。

为我工作。

关于c# - 在 Visual Studio 2010 中使用目标构建时收到大量警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7899043/

相关文章:

c# - 以编程方式将用户角色添加到 COM+ 组件 (C#)

c# - Linkedin API(授权 token (oauth2))c#.net

.net - 引用 dll 时忽略内部版本号

build - 详细的 cmake : How to get more diagnostics?

第一次启动正在开发的应用程序后,iOS 9.x 设置空白

c# - 偏移量 1049 处的无效请求 BLR - 函数 ROUNDDEC 未定义

c++ - 向mfc对话框控件添加变量

visual-studio - 有没有办法将 Visual Studio 或 MATLAB 中的程序执行顺序设为 "map"?

Maven - 将 Artifact 安装到 Nexus 存储库

c# - 如何使 AuthorizeEndpointPath 在 ASP.NET Oauth 2.0 框架中工作