加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 在Visual Studio 2010中使用目标构建时,会收到许多警告

发布时间:2020-12-15 03:55:35 所属栏目:百科 来源:网络整理
导读:我正在尝试构建一些代码,但在目标文件中收到许多警告,如下所示: Warning 12 The element ‘ItemGroup’ in namespace ‘http://schemas.microsoft.com/developer/msbuild/2003’ has invalid child element ‘TCS_Compile’ in namespace ‘http://schemas.
我正在尝试构建一些代码,但在目标文件中收到许多警告,如下所示:

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’.

任何想法如何解决这些问题?

解决方法

here信息…

“你可以安全地忽略这个警告,MSBuild也会根据模式验证你的项目文件?是的,但我不知道它是如何完成的,所以我向巴克霍奇斯发了一封电子邮件,他很好通过一个尚未命名的开发者在MSBuild团队中通过它,开发者说

“… MSBuild确实尝试对模式进行验证,但是验证是在运行时通过我们的代码完成的,而不是使用xsd(主要是出于perf原因)的验证读取器加载[project]文件.MSBuild应该失败不符合模式的项目“.

所以你有它.该模式被强制执行,同时仍允许您自定义和扩展MSBuild项目文件以满足您的需要.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读