C# Visual Studio 2017发布错误“;清单中的引用与下载的程序集Microsoft.SqlServer.Types.dll的标识不匹配。”;

C# Visual Studio 2017发布错误“;清单中的引用与下载的程序集Microsoft.SqlServer.Types.dll的标识不匹配。”;,c#,wpf,visual-studio,clickonce,visual-studio-2017-build-tools,C#,Wpf,Visual Studio,Clickonce,Visual Studio 2017 Build Tools,当我从Visual Studio中的应用程序添加此文件时,会显示此错误 ERROR DETAILS Following errors were detected during this operation. * [4/13/2019 8:39:17 PM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation) - Reference in the manifest does not matc

当我从Visual Studio中的应用程序添加此文件时,会显示此错误

ERROR DETAILS
Following errors were detected during this operation.
* [4/13/2019 8:39:17 PM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
    - Reference in the manifest does not match the identity of the downloaded assembly Microsoft.SqlServer.Types.dll.
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
        at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
        at System.Deployment.Application.FileDownloader.OnModified()
        at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
        at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
        at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
        at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
        at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
        at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
        at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
        at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
当我添加此文件时,即使在开发PC中,当我尝试安装click one
Exe时,它也会显示错误

当我将其从应用程序更改为Visual Studio时,会显示以下错误

但在开发PC上,当我从中选择“自动”时,它不会显示此错误 VS->应用程序文件仅在其他(客户端)PC上显示错误 我也试过了 但不起作用
我还更改了manifest选项,但不起作用