找不到依赖项“ MICROSOFT.SQLSERVER.MANAGEMENT.SQLPARSER”

时间:2018-11-05 21:55:00

标签: c# visual-studio visual-studio-2017 setup-project sql-parser

我正在尝试部署Winforms应用程序,并且在运行安装文件时它将无法启动。我在安装项目的构建过程中检查了日志,并说我需要以下版本的

11:
  

MICROSOFT.SQLSERVER.MANAGEMENT.SQLPARSER

我当前正在运行VS2017,SQL Server Management Studio和SQL Express版本14。我具有版本13和14的解析器,但仍然遇到相同的问题,因为出于某种原因它正在寻找版本11,我无法安装。

我已经花了两天时间尝试修复并且无法修复。我已尽可能安装了各种功能部件包,但我完全陷入困境。

构建输出:

1>------ Build started: Project: CSV Manager, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'Microsoft.SqlServer.ServiceBrokerEnum' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'Microsoft.SqlServer.SqlEnum' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'Microsoft.SqlServer.ConnectionInfo' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'Microsoft.SqlServer.Management.Sdk.Sfc' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'Microsoft.SqlServer.Smo' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'System.Diagnostics.EventLog' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'System.Security.AccessControl' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'System.Security.Permissions' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'System.Security.Principal.Windows' does not allow partially trusted callers.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3867,5): warning MSB3177: Reference 'System.ServiceProcess.ServiceController' does not allow partially trusted callers.
1>  CSV Manager -> C:\Users\D\Dropbox\VS Project\CSVGenerator\CSV Manager\CSV Manager\bin\Debug\CSV Manager.exe
------ Starting pre-build validation for project 'Mappi CSV Manager' ------ 
------ Starting pre-build validation for project 'Mappi CSV Manager' ------ 
WARNING: Unable to find dependency 'MICROSOFT.SQLSERVER.MANAGEMENT.SQLPARSER' (Signature='89845DCD8080CC91' Version='11.0.0.0') of assembly 'Microsoft.SqlServer.Smo.dll'
WARNING: Unable to find dependency 'MICROSOFT.SQLSERVER.MANAGEMENT.SQLPARSER' (Signature='89845DCD8080CC91' Version='11.0.0.0') of assembly 'Microsoft.SqlServer.Smo.dll'
WARNING: Unable to find dependency 'MICROSOFT.SQLSERVER.MANAGEMENT.SQLPARSER' (Signature='89845DCD8080CC91' Version='11.0.0.0') of assembly 'Microsoft.SqlServer.Management.SmoMetadataProvider.dll'
WARNING: Unable to find dependency 'MICROSOFT.SQLSERVER.MANAGEMENT.SQLPARSER' (Signature='89845DCD8080CC91' Version='11.0.0.0') of assembly 'Microsoft.SqlServer.Management.SmoMetadataProvider.dll'
------ Pre-build validation for project 'Mappi CSV Manager' completed ------
------ Pre-build validation for project 'Mappi CSV Manager' completed ------
2>------ Build started: Project: Mappi CSV Manager, Configuration: Debug ------
2>------ Build started: Project: Mappi CSV Manager, Configuration: Debug ------
Building file 'C:\Users\D\Dropbox\VS Project\CSVGenerator\CSV Manager\Mappi CSV Manager\Debug\Mappi CSV Manager.msi'...
Building file 'C:\Users\D\Dropbox\VS Project\CSVGenerator\CSV Manager\Mappi CSV Manager\Debug\Mappi CSV Manager.msi'...
Packaging file 'Microsoft.SqlServer.ServiceBrokerEnum.dll'...
Packaging file 'Microsoft.SqlServer.ServiceBrokerEnum.dll'...
Packaging file 'Microsoft.SqlServer.Smo.dll'...
Packaging file 'Microsoft.SqlServer.Smo.dll'...
Packaging file 'CSV Manager.exe'...
Packaging file 'CSV Manager.exe'...
Packaging file 'dbScript.sql'...
Packaging file 'dbScript.sql'...
Packaging file 'Microsoft.SqlServer.Diagnostics.STrace.dll'...
Packaging file 'Microsoft.SqlServer.Diagnostics.STrace.dll'...
Packaging file 'AnalysisServicesProject.ico'...
Packaging file 'AnalysisServicesProject.ico'...
Packaging file 'CSV Manager.exe.config'...
Packaging file 'CSV Manager.exe.config'...
Packaging file 'System.Security.AccessControl.dll'...
Packaging file 'System.Security.AccessControl.dll'...
Packaging file 'System.Security.Permissions.dll'...
Packaging file 'System.Security.Permissions.dll'...
Packaging file 'Microsoft.SqlServer.Management.Sdk.Sfc.dll'...
Packaging file 'Microsoft.SqlServer.Management.Sdk.Sfc.dll'...
Packaging file 'System.Security.Principal.Windows.dll'...
Packaging file 'System.Security.Principal.Windows.dll'...
Packaging file 'Microsoft.SqlServer.ConnectionInfo.dll'...
Packaging file 'Microsoft.SqlServer.ConnectionInfo.dll'...
Packaging file 'Microsoft.SqlServer.Management.SmoMetadataProvider.dll'...
Packaging file 'Microsoft.SqlServer.Management.SmoMetadataProvider.dll'...
Packaging file 'System.ServiceProcess.ServiceController.dll'...
Packaging file 'System.ServiceProcess.ServiceController.dll'...
Packaging file 'System.Diagnostics.EventLog.dll'...
Packaging file 'System.Diagnostics.EventLog.dll'...
Packaging file 'Microsoft.SqlServer.SqlEnum.dll'...
Packaging file 'Microsoft.SqlServer.SqlEnum.dll'...
Packaging file 'Microsoft.SqlServer.SqlClrProvider.dll'...
Packaging file 'Microsoft.SqlServer.SqlClrProvider.dll'...
Packaging file 'System.Net.Http.dll'...
Packaging file 'System.Net.Http.dll'...
Packaging file 'Microsoft.SqlServer.Dmf.dll'...
Packaging file 'Microsoft.SqlServer.Dmf.dll'...

0 个答案:

没有答案