"" SqlBuildTask"任务意外失败......" SSDT中的异常

时间:2016-09-29 15:47:11

标签: visual-studio-2015 sql-server-data-tools

在我们的VStudio 2015解决方案中,我们有一系列SSDT。其中一个是返回异常"" SqlBuildTask"任务意外失败。 Microsoft.Data.Tools.Schema.Sql.Build.BuildFailedException:具有相同密钥的条目已存在。" 。我进入了Microsoft.Data.Tools.Schema.SqlTask​​s.targets并查看了(在下面发布)

<SqlBuildTask   PostdeployItem="@(PostDeploy->'%(FullPath)')"
      PredeployItem="@(PreDeploy->'%(FullPath)')"
      RefactorLog="@(RefactorLog->'%(FullPath)')"
      SqlTarget="@(SqlTarget)"

      ContributorArguments="$(ContributorArguments)"

      BuildExtensionConfiguration="@(BuildExtensionConfiguration)"
      BuildContributors="$(BuildContributors)"
      DeploymentExtensionConfiguration="@(DeploymentExtensionConfiguration)"
      DeploymentContributors="$(DeploymentContributors)"

      ConnectionString="$(TargetConnectionString)"
      CreateScriptFileName="$(CreateScriptFileName)"
      DacApplicationName="$(DacApplicationName)"
      DacDescription="$(DacDescription)"
      DacFile="@(DacFile)"
      DacVersion="$(DacVersion)"
      DatabaseName="$(TargetDatabase)"
      DatabaseSchemaProviderName="$(DSP)"
      DefaultSchema="$(DefaultSchema)"
      DeploymentScriptName="$(DeployScriptFileName)"
      DeployToDatabase="$(UpdateDatabase)"
      GenerateCreateScript="$(GenerateCreateScript)"
      GenerateDac="$(GenerateDac)"
      ImplicitDllAssemblyName="$(AssemblyName)"
      ImplicitDllAssemblyOwner="$(AssemblyOwner)"
      ImplicitDllFileName="$(IntermediateTargetFullFileName)"
      ImplicitDllSymbolsFileName="$(IntermediateSymbolsFullFileName)"
      ImplicitDllGenerateSqlClrDdl="$(GenerateSqlClrDdl)"
      ImplicitDllIsVisible="$(IsVisible)"
      ImplicitDllPermissionSet="$(PermissionSet)"
      IntermediateDirectory="$(GeneratedFilesIntermediatePath)"
      ModelCollation="$(ModelCollation)"
      OutputDirectory="$(TargetDir)"
      PreserveHeaderComments="$(PreserveHeaderComments)"
      Source="@(Build->'%(FullPath)')"
      SqlCmdVariables="@(SqlCmdVariables)"
      SqlReferencePath="@(SqlReferencePath)"
      SuppressTSqlWarnings="$(SuppressTSqlWarnings)"
      TreatTSqlWarningsAsErrors="$(TreatTSqlWarningsAsErrors)"
      ValidateCasingOnIdentifiers="$(ValidateCasingOnIdentifiers)"
      CmdLineInMemoryStorage="$(CmdLineInMemoryStorage)"
      DefaultCollation="$(DefaultCollation)"
      AnsiNullDefault="$(AnsiNullDefault)"
      AnsiNulls="$(AnsiNulls)"
      AnsiPadding="$(AnsiPadding)"
      AnsiWarnings="$(AnsiWarnings)"
      ArithAbort="$(ArithAbort)"
      ConcatNullYieldsNull="$(ConcatNullYieldsNull)"
      QuotedIdentifier="$(QuotedIdentifier)"
      NumericRoundAbort="$(NumericRoundAbort)"
      RecursiveTriggersEnabled="$(RecursiveTriggersEnabled)"
      DatabaseChaining="$(DatabaseChaining)"
      DatabaseState="$(DatabaseState)"
      UpdateOptions="$(UpdateOptions)"
      CloseCursorOnCommitEnabled="$(CloseCursorOnCommitEnabled)"
      DefaultCursor="$(DefaultCursor)"
      AutoClose="$(AutoClose)"
      AutoCreateStatistics="$(AutoCreateStatistics)"
      AutoShrink="$(AutoShrink)"
      AutoUpdateStatistics="$(AutoUpdateStatistics)"
      TornPageDetection="$(TornPageDetection)"
      DatabaseAccess="$(DatabaseAccess)"
      Recovery="$(Recovery)"
      EnableFullTextSearch="$(EnableFullTextSearch)"
      DefaultFilegroup="$(DefaultFilegroup)"
      Trustworthy="$(Trustworthy)"
      AutoUpdateStatisticsAsynchronously="$(AutoUpdateStatisticsAsynchronously)"
      PageVerify="$(PageVerify)"
      ServiceBrokerOption="$(ServiceBrokerOption)"
      DateCorrelationOptimizationOn="$(DateCorrelationOptimizationOn)"
      Parameterization="$(Parameterization)"
      AllowSnapshotIsolation="$(AllowSnapshotIsolation)"
      ReadCommittedSnapshot="$(ReadCommittedSnapshot)"
      VardecimalStorageFormatOn="$(VardecimalStorageFormatOn)"
      SupplementalLoggingOn="$(SupplementalLoggingOn)"
      CompatibilityMode="$(CompatibilityMode)"
      DefaultFileStreamFilegroup="$(DefaultFileStreamFilegroup)"
      IsChangeTrackingOn="$(IsChangeTrackingOn)"
      IsChangeTrackingAutoCleanupOn="$(IsChangeTrackingAutoCleanupOn)"
      ChangeTrackingRetentionPeriod="$(ChangeTrackingRetentionPeriod)"
      ChangeTrackingRetentionUnit="$(ChangeTrackingRetentionUnit)"
      IsEncryptionOn="$(IsEncryptionOn)"
      IsBrokerPriorityHonored="$(IsBrokerPriorityHonored)"
      Containment="$(Containment)"
      DatabaseDefaultLanguage="$(DatabaseDefaultLanguage)"
      DatabaseDefaultFulltextLanguage="$(DatabaseDefaultFulltextLanguage)"
      IsNestedTriggersOn="$(IsNestedTriggersOn)"
      IsTransformNoiseWordsOn="$(IsTransformNoiseWordsOn)"
      TwoDigitYearCutoff="$(TwoDigitYearCutoff)"
      NonTransactedFileStreamAccess="$(NonTransactedFileStreamAccess)"
      FileStreamDirectoryName="$(FileStreamDirectoryName)"
      TargetRecoveryTimePeriod="$(TargetRecoveryTimePeriod)"
      TargetRecoveryTimeUnit="$(TargetRecoveryTimeUnit)"
      DelayedDurability="$(DelayedDurability)"
      AutoCreateStatisticsIncremental="$(AutoCreateStatisticsIncremental)"
      MemoryOptimizedElevateToSnapshot="$(MemoryOptimizedElevateToSnapshot)"
      QueryStoreCaptureMode="$(QueryStoreCaptureMode)"
      QueryStoreDesiredState="$(QueryStoreDesiredState)"
      QueryStoreFlushInterval="$(QueryStoreFlushInterval)"
      QueryStoreStatsInterval="$(QueryStoreStatsInterval)"
      QueryStoreMaxPlansPerQuery="$(QueryStoreMaxPlansPerQuery)"
      QueryStoreStaleQueryThreshold="$(QueryStoreStaleQueryThreshold)"
      QueryStoreMaxStorageSize="$(QueryStoreMaxStorageSize)"
      DbScopedConfigLegacyCardinalityEstimation="$(DbScopedConfigLegacyCardinalityEstimation)"
      DbScopedConfigLegacyCardinalityEstimationSecondary="$(DbScopedConfigLegacyCardinalityEstimationSecondary)"
      DbScopedConfigMaxDOP="$(DbScopedConfigMaxDOP)"
      DbScopedConfigMaxDOPSecondary="$(DbScopedConfigMaxDOPSecondary)"
      DbScopedConfigParameterSniffing="$(DbScopedConfigParameterSniffing)"
      DbScopedConfigParameterSniffingSecondary="$(DbScopedConfigParameterSniffingSecondary)"
      DbScopedConfigOptimizerHotfixes="$(DbScopedConfigOptimizerHotfixes)"
      DbScopedConfigOptimizerHotfixesSecondary="$(DbScopedConfigOptimizerHotfixesSecondary)"
      TemporalHistoryRetentionEnabled="$(TemporalHistoryRetentionEnabled)"
      AdditionalDeploymentContributorArguments="$(AdditionalDeploymentContributorArguments)"
      AdditionalDeploymentContributors="$(AdditionalDeploymentContributors)"
      AllowDropBlockingAssemblies="$(AllowDropBlockingAssemblies)"
      AllowIncompatiblePlatform="$(AllowIncompatiblePlatform)"
      AllowUnsafeRowLevelSecurityDataMovement="$(AllowUnsafeRowLevelSecurityDataMovement)"
      BackupDatabaseBeforeChanges="$(BackupDatabaseBeforeChanges)"
      BlockOnPossibleDataLoss="$(BlockOnPossibleDataLoss)"
      BlockWhenDriftDetected="$(BlockWhenDriftDetected)"
      CommentOutSetVarDeclarations="$(CommentOutSetVarDeclarations)"
      CompareUsingTargetCollation="$(CompareUsingTargetCollation)"
      CreateNewDatabase="$(CreateNewDatabase)"
      DeployDatabaseInSingleUserMode="$(DeployDatabaseInSingleUserMode)"
      DisableAndReenableDdlTriggers="$(DisableAndReenableDdlTriggers)"
      DoNotAlterChangeDataCaptureObjects="$(DoNotAlterChangeDataCaptureObjects)"
      DoNotAlterReplicatedObjects="$(DoNotAlterReplicatedObjects)"
      DoNotDropAggregates="$(DoNotDropAggregates)"
      DoNotDropApplicationRoles="$(DoNotDropApplicationRoles)"
      DoNotDropAssemblies="$(DoNotDropAssemblies)"
      DoNotDropAsymmetricKeys="$(DoNotDropAsymmetricKeys)"
      DoNotDropAudits="$(DoNotDropAudits)"
      DoNotDropBrokerPriorities="$(DoNotDropBrokerPriorities)"
      DoNotDropCertificates="$(DoNotDropCertificates)"
      DoNotDropClrUserDefinedTypes="$(DoNotDropClrUserDefinedTypes)"
      DoNotDropColumnEncryptionKeys="$(DoNotDropColumnEncryptionKeys)"
      DoNotDropColumnMasterKeys="$(DoNotDropColumnMasterKeys)"
      DoNotDropContracts="$(DoNotDropContracts)"
      DoNotDropCredentials="$(DoNotDropCredentials)"
      DoNotDropCryptographicProviders="$(DoNotDropCryptographicProviders)"
      DoNotDropDatabaseAuditSpecifications="$(DoNotDropDatabaseAuditSpecifications)"
      DoNotDropDatabaseRoles="$(DoNotDropDatabaseRoles)"
      DoNotDropDatabaseScopedCredentials="$(DoNotDropDatabaseScopedCredentials)"
      DoNotDropDatabaseTriggers="$(DoNotDropDatabaseTriggers)"
      DoNotDropDefaults="$(DoNotDropDefaults)"
      DoNotDropEndpoints="$(DoNotDropEndpoints)"
      DoNotDropErrorMessages="$(DoNotDropErrorMessages)"
      DoNotDropEventNotifications="$(DoNotDropEventNotifications)"
      DoNotDropEventSessions="$(DoNotDropEventSessions)"
      DoNotDropExtendedProperties="$(DoNotDropExtendedProperties)"
      DoNotDropExternalDataSources="$(DoNotDropExternalDataSources)"
      DoNotDropExternalFileFormats="$(DoNotDropExternalFileFormats)"
      DoNotDropExternalTables="$(DoNotDropExternalTables)"
      DoNotDropFilegroups="$(DoNotDropFilegroups)"
      DoNotDropFileTables="$(DoNotDropFileTables)"
      DoNotDropFullTextCatalogs="$(DoNotDropFullTextCatalogs)"
      DoNotDropFullTextStoplists="$(DoNotDropFullTextStoplists)"
      DoNotDropLinkedServerLogins="$(DoNotDropLinkedServerLogins)"
      DoNotDropLinkedServers="$(DoNotDropLinkedServers)"
      DoNotDropLogins="$(DoNotDropLogins)"
      DoNotDropMessageTypes="$(DoNotDropMessageTypes)"
      DoNotDropPartitionFunctions="$(DoNotDropPartitionFunctions)"
      DoNotDropPartitionSchemes="$(DoNotDropPartitionSchemes)"
      DoNotDropPermissions="$(DoNotDropPermissions)"
      DoNotDropQueues="$(DoNotDropQueues)"
      DoNotDropRemoteServiceBindings="$(DoNotDropRemoteServiceBindings)"
      DoNotDropRoleMembership="$(DoNotDropRoleMembership)"
      DoNotDropRoutes="$(DoNotDropRoutes)"
      DoNotDropRules="$(DoNotDropRules)"
      DoNotDropScalarValuedFunctions="$(DoNotDropScalarValuedFunctions)"
      DoNotDropSearchPropertyLists="$(DoNotDropSearchPropertyLists)"
      DoNotDropSecurityPolicies="$(DoNotDropSecurityPolicies)"
      DoNotDropSequences="$(DoNotDropSequences)"
      DoNotDropServerAuditSpecifications="$(DoNotDropServerAuditSpecifications)"
      DoNotDropServerRoleMembership="$(DoNotDropServerRoleMembership)"
      DoNotDropServerRoles="$(DoNotDropServerRoles)"
      DoNotDropServerTriggers="$(DoNotDropServerTriggers)"
      DoNotDropServices="$(DoNotDropServices)"
      DoNotDropSignatures="$(DoNotDropSignatures)"
      DoNotDropStoredProcedures="$(DoNotDropStoredProcedures)"
      DoNotDropSymmetricKeys="$(DoNotDropSymmetricKeys)"
      DoNotDropSynonyms="$(DoNotDropSynonyms)"
      DoNotDropTables="$(DoNotDropTables)"
      DoNotDropTableValuedFunctions="$(DoNotDropTableValuedFunctions)"
      DoNotDropUserDefinedDataTypes="$(DoNotDropUserDefinedDataTypes)"
      DoNotDropUserDefinedTableTypes="$(DoNotDropUserDefinedTableTypes)"
      DoNotDropUsers="$(DoNotDropUsers)"
      DoNotDropViews="$(DoNotDropViews)"
      DoNotDropXmlSchemaCollections="$(DoNotDropXmlSchemaCollections)"
      DropConstraintsNotInSource="$(DropConstraintsNotInSource)"
      DropDmlTriggersNotInSource="$(DropDmlTriggersNotInSource)"
      DropExtendedPropertiesNotInSource="$(DropExtendedPropertiesNotInSource)"
      DropIndexesNotInSource="$(DropIndexesNotInSource)"
      DropObjectsNotInSource="$(DropObjectsNotInSource)"
      DropPermissionsNotInSource="$(DropPermissionsNotInSource)"
      DropRoleMembersNotInSource="$(DropRoleMembersNotInSource)"
      DropStatisticsNotInSource="$(DropStatisticsNotInSource)"
      ExcludeAggregates="$(ExcludeAggregates)"
      ExcludeApplicationRoles="$(ExcludeApplicationRoles)"
      ExcludeAssemblies="$(ExcludeAssemblies)"
      ExcludeAsymmetricKeys="$(ExcludeAsymmetricKeys)"
      ExcludeAudits="$(ExcludeAudits)"
      ExcludeBrokerPriorities="$(ExcludeBrokerPriorities)"
      ExcludeCertificates="$(ExcludeCertificates)"
      ExcludeClrUserDefinedTypes="$(ExcludeClrUserDefinedTypes)"
      ExcludeColumnEncryptionKeys="$(ExcludeColumnEncryptionKeys)"
      ExcludeColumnMasterKeys="$(ExcludeColumnMasterKeys)"
      ExcludeContracts="$(ExcludeContracts)"
      ExcludeCredentials="$(ExcludeCredentials)"
      ExcludeCryptographicProviders="$(ExcludeCryptographicProviders)"
      ExcludeDatabaseAuditSpecifications="$(ExcludeDatabaseAuditSpecifications)"
      ExcludeDatabaseRoles="$(ExcludeDatabaseRoles)"
      ExcludeDatabaseScopedCredentials="$(ExcludeDatabaseScopedCredentials)"
      ExcludeDatabaseTriggers="$(ExcludeDatabaseTriggers)"
      ExcludeDefaults="$(ExcludeDefaults)"
      ExcludeEndpoints="$(ExcludeEndpoints)"
      ExcludeErrorMessages="$(ExcludeErrorMessages)"
      ExcludeEventNotifications="$(ExcludeEventNotifications)"
      ExcludeEventSessions="$(ExcludeEventSessions)"
      ExcludeExternalDataSources="$(ExcludeExternalDataSources)"
      ExcludeExternalFileFormats="$(ExcludeExternalFileFormats)"
      ExcludeExternalTables="$(ExcludeExternalTables)"
      ExcludeFilegroups="$(ExcludeFilegroups)"
      ExcludeFileTables="$(ExcludeFileTables)"
      ExcludeFullTextCatalogs="$(ExcludeFullTextCatalogs)"
      ExcludeFullTextStoplists="$(ExcludeFullTextStoplists)"
      ExcludeLinkedServerLogins="$(ExcludeLinkedServerLogins)"
      ExcludeLinkedServers="$(ExcludeLinkedServers)"
      ExcludeLogins="$(ExcludeLogins)"
      ExcludeMessageTypes="$(ExcludeMessageTypes)"
      ExcludePartitionFunctions="$(ExcludePartitionFunctions)"
      ExcludePartitionSchemes="$(ExcludePartitionSchemes)"
      ExcludeQueues="$(ExcludeQueues)"
      ExcludeRemoteServiceBindings="$(ExcludeRemoteServiceBindings)"
      ExcludeRoutes="$(ExcludeRoutes)"
      ExcludeRules="$(ExcludeRules)"
      ExcludeScalarValuedFunctions="$(ExcludeScalarValuedFunctions)"
      ExcludeSearchPropertyLists="$(ExcludeSearchPropertyLists)"
      ExcludeSecurityPolicies="$(ExcludeSecurityPolicies)"
      ExcludeSequences="$(ExcludeSequences)"
      ExcludeServerAuditSpecifications="$(ExcludeServerAuditSpecifications)"
      ExcludeServerRoleMembership="$(ExcludeServerRoleMembership)"
      ExcludeServerRoles="$(ExcludeServerRoles)"
      ExcludeServerTriggers="$(ExcludeServerTriggers)"
      ExcludeServices="$(ExcludeServices)"
      ExcludeSignatures="$(ExcludeSignatures)"
      ExcludeStoredProcedures="$(ExcludeStoredProcedures)"
      ExcludeSymmetricKeys="$(ExcludeSymmetricKeys)"
      ExcludeSynonyms="$(ExcludeSynonyms)"
      ExcludeTables="$(ExcludeTables)"
      ExcludeTableValuedFunctions="$(ExcludeTableValuedFunctions)"
      ExcludeUserDefinedDataTypes="$(ExcludeUserDefinedDataTypes)"
      ExcludeUserDefinedTableTypes="$(ExcludeUserDefinedTableTypes)"
      ExcludeUsers="$(ExcludeUsers)"
      ExcludeViews="$(ExcludeViews)"
      ExcludeXmlSchemaCollections="$(ExcludeXmlSchemaCollections)"
      GenerateSmartDefaults="$(GenerateSmartDefaults)"
      IgnoreAnsiNulls="$(IgnoreAnsiNulls)"
      IgnoreAuthorizer="$(IgnoreAuthorizer)"
      IgnoreColumnCollation="$(IgnoreColumnCollation)"
      IgnoreComments="$(IgnoreComments)"
      IgnoreCryptographicProviderFilePath="$(IgnoreCryptographicProviderFilePath)"
      IgnoreDdlTriggerOrder="$(IgnoreDdlTriggerOrder)"
      IgnoreDdlTriggerState="$(IgnoreDdlTriggerState)"
      IgnoreDefaultSchema="$(IgnoreDefaultSchema)"
      IgnoreDmlTriggerOrder="$(IgnoreDmlTriggerOrder)"
      IgnoreDmlTriggerState="$(IgnoreDmlTriggerState)"
      IgnoreExtendedProperties="$(IgnoreExtendedProperties)"
      IgnoreFileAndLogFilePath="$(IgnoreFileAndLogFilePath)"
      IgnoreFilegroupPlacement="$(IgnoreFilegroupPlacement)"
      IgnoreFileSize="$(IgnoreFileSize)"
      IgnoreFillFactor="$(IgnoreFillFactor)"
      IgnoreFullTextCatalogFilePath="$(IgnoreFullTextCatalogFilePath)"
      IgnoreIdentitySeed="$(IgnoreIdentitySeed)"
      IgnoreIncrement="$(IgnoreIncrement)"
      IgnoreIndexOptions="$(IgnoreIndexOptions)"
      IgnoreIndexPadding="$(IgnoreIndexPadding)"
      IgnoreKeywordCasing="$(IgnoreKeywordCasing)"
      IgnoreLockHintsOnIndexes="$(IgnoreLockHintsOnIndexes)"
      IgnoreLoginSids="$(IgnoreLoginSids)"
      IgnoreNotForReplication="$(IgnoreNotForReplication)"
      IgnoreObjectPlacementOnPartitionScheme="$(IgnoreObjectPlacementOnPartitionScheme)"
      IgnorePartitionSchemes="$(IgnorePartitionSchemes)"
      IgnorePermissions="$(IgnorePermissions)"
      IgnoreQuotedIdentifiers="$(IgnoreQuotedIdentifiers)"
      IgnoreRoleMembership="$(IgnoreRoleMembership)"
      IgnoreRouteLifetime="$(IgnoreRouteLifetime)"
      IgnoreSemicolonBetweenStatements="$(IgnoreSemicolonBetweenStatements)"
      IgnoreTableOptions="$(IgnoreTableOptions)"
      IgnoreUserSettingsObjects="$(IgnoreUserSettingsObjects)"
      IgnoreWhitespace="$(IgnoreWhitespace)"
      IgnoreWithNocheckOnCheckConstraints="$(IgnoreWithNocheckOnCheckConstraints)"
      IgnoreWithNocheckOnForeignKeys="$(IgnoreWithNocheckOnForeignKeys)"
      IncludeCompositeObjects="$(IncludeCompositeObjects)"
      IncludeTransactionalScripts="$(IncludeTransactionalScripts)"
      NoAlterStatementsToChangeCLRTypes="$(NoAlterStatementsToChangeCLRTypes)"
      PopulateFilesOnFileGroups="$(PopulateFilesOnFileGroups)"
      RegisterDataTierApplication="$(RegisterDataTierApplication)"
      ScriptDatabaseCollation="$(ScriptDatabaseCollation)"
      ScriptDatabaseCompatibility="$(ScriptDatabaseCompatibility)"
      ScriptDatabaseOptions="$(ScriptDatabaseOptions)"
      ScriptDeployStateChecks="$(ScriptDeployStateChecks)"
      ScriptFileSize="$(ScriptFileSize)"
      ScriptNewConstraintValidation="$(ScriptNewConstraintValidation)"
      ScriptRefreshModule="$(ScriptRefreshModule)"
      TargetDatabaseName="$(TargetDatabaseName)"
      TreatVerificationErrorsAsWarnings="$(TreatVerificationErrorsAsWarnings)"
      UnmodifiableObjectWarnings="$(UnmodifiableObjectWarnings)"
      VerifyCollationCompatibility="$(VerifyCollationCompatibility)"
      VerifyDeployment="$(VerifyDeployment)"
      >
      <Output TaskParameter="IntermediateFileWrites" ItemName="FileWrites"/>
    </SqlBuildTask>

On our previous sprint, the build and deploy of the project was working fine. When I did a TFS compare with the previous version there are no major differences.

这就是我已经做过的事情:

  • 我已将SSDT升级到最新版本(没有修复)

  • 删除了Microsoft.Data.Tools.Schema.SqlTask​​s.targets文件并修复了ssdt安装(也没有修复)

我仍在寻找目标文件中的任何重复键,因为异常指出

任何帮助将不胜感激......

4 个答案:

答案 0 :(得分:3)

这似乎发生了,因为refactorlog文件(包含有关列重命名的信息)包含两个或多个具有相同ChangeDateTime值的条目。 SSDT如何处理这些重复项有一个错误。

答案 1 :(得分:0)

除了以下文件夹中以“ .NET”开头的文件外,我必须删除所有内容:

...\UserAccountUsedByTfsBuild\AppData\Local\Temp

做到了!

答案 2 :(得分:0)

  1. 我是通过删除本地系统的临时文件夹来实现的
  2. 在Visual Studio 2017中签入-SSDT项目-架构比较文件已打开
  3. 如果打开,则将其关闭,然后重新启动Visual Studio 2017
  4. 它对我有用-现在构建成功

答案 3 :(得分:0)

我遇到了同样的问题。我只是关闭并重新启动 VS 2017,它就可以工作了。