SSDT Project 关于无效子元素 IncludeCompositeObjects 的错误警告

SSDT Project ille warning on Invalid Child Element IncludeCompositeObjects

我正在从事 SSDT 项目。发布脚本如下所示:

<?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <IncludeCompositeObjects>True</IncludeCompositeObjects>
        <TargetDatabaseName>VisionStaging</TargetDatabaseName>
        <DeployScriptFileName>VisionStaging.sql</DeployScriptFileName>
        <TargetConnectionString>xxxx</TargetConnectionString>
        <BlockOnPossibleDataLoss>True</BlockOnPossibleDataLoss>
        <CreateNewDatabase>True</CreateNewDatabase>
        <ProfileVersionNumber>1</ProfileVersionNumber>
        <IgnoreColumnOrder>True</IgnoreColumnOrder>
        <IgnorePartitionSchemes>True</IgnorePartitionSchemes>
      </PropertyGroup>
      <ItemGroup>
        <SqlCmdVariable Include="master">
          <Value>master</Value>
        </SqlCmdVariable>
      </ItemGroup>
    </Project>

当我在 Visual Studio 中打开此文件时,会出现一些警告:

The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'IncludeCompositeObjects' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'

The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'SqlCmdVariable' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.

The element 'Project' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has incomplete content.

我想最后一个是由前两个引起的。知道如何摆脱这些警告吗?请注意,这些文件是由 15.1.61902.21100 的 SSDT 插件构建的,VS 没有显示任何可用的更新。也就是说,SSDT插件把这些元素放在了文件中,而不是我。

PropertyGroup Contains a set of user-defined Property elements.

在这种情况下验证架构 Visual Studio IDE 中的 MSBuild 架构无法正确处理自定义属性,因此如果您打开 publish.xml 文件,您将始终获得PropertyGroup 下第一个自定义项目的警告,例如 IncludeCompositeObjects

它应该不会造成任何问题,因为您可以定义自己的属性,它们应该只在您打开 publish.xml 文件进行编辑时出现在 IDE.

如果您进行编辑并关闭文件,它们应该会消失。