【问题标题】:MSBuild warning messages in VS2010VS2010 中的 MSBuild 警告消息
【发布时间】:2012-03-16 12:16:38
【问题描述】:

我收到许多以下警告消息。这是我应该关心的事情吗?

警告 1 命名空间中的元素“PropertyGroup” 'http://schemas.microsoft.com/developer/msbuild/2003' 无效 子元素“ImportByWildcardBeforeMicrosoftCommonTargets” 命名空间'http://schemas.microsoft.com/developer/msbuild/2003'。列表 预期的可能元素:'Property, AllowUnsafeBlocks, AppConfigForCompiler、ApplicationIcon、ApplicationRevision、 ApplicationVersion、AppDesignerFolder、AspNetConfiguration、 AssemblyKeyContainerName、AssemblyKeyProviderName、AssemblyName、 AssemblyOriginatorKeyFile、AssemblyOriginatorKeyFileType、 AssemblyOriginatorKeyMode、AssemblyType、AutorunEnabled、BaseAddress、 BootstrapperComponentsLocation,BootstrapperComponentsUrl, BootstrapperEnabled、CharacterSet、CheckForOverflowUnderflow、 CLRSupport、代码页、配置、配置名称、 ConfigurationOverrideFile, CreateDesktopShortcut, CreateWebPageOnPublish、CurrentSolutionConfigurationContents、 DebugSecurityZoneURL、DebugSymbols、DebugType、DefaultClientScript、 DefaultHTMLPageLayout、DefaultTargetSchema、DefineConstants、 DefineDebug、DefineTrace、DelaySign、DisableLangXtns、 DisallowUrlActivation,代码分析附加选项, CodeAnalysisApplyLogFileXsl、CodeAnalysisConsoleXsl、 CodeAnalysisCulture, CodeAnalysisFailOnMissingRules, 代码分析力输出, CodeAnalysisGenerateS.... C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 20 9 Miscellaneous 文件

【问题讨论】:

    标签: c# .net visual-studio-2010


    【解决方案1】:

    您可以忽略此警告,see this link 进行解释:

    当您将架构属性应用到您的 Project 元素时,Visual Studio 读取架构并使用内部信息提供 编辑期间的智能感知。作为这方面的一个分支,它也 当它发现您使用了以下元素或属性时会向您发出警告 不是架构的一部分。自定义属性和项目元素是 不属于 MSBuild 架构。

    【讨论】:

    • 有没有办法禁用它,而不仅仅是忽略它?
    猜你喜欢
    • 2022-08-20
    • 1970-01-01
    • 2021-01-19
    • 1970-01-01
    • 1970-01-01
    • 2019-10-03
    • 2015-08-07
    • 2019-05-02
    • 1970-01-01
    相关资源
    最近更新 更多