简体   繁体   English

项目Runnig错误无法加载文件或程序集'Microsoft.SqlServer.Management.SDK.SqlStudio,版本= 14.0.0.0

[英]Project Runnig error Could not load file or assembly 'Microsoft.SqlServer.Management.SDK.SqlStudio, Version=14.0.0.0

I have a problem with my project. 我的项目有问题。 When I run it with ssms 2017 it's working. 当我使用ssms 2017运行它时,它正在工作。 But when I want to run it with ssms 2018 I have error: 但是当我想用ssms 2018运行它时,我遇到了错误:

Could not load file or assembly 'Microsoft.SqlServer.Management.SDK.SqlStudio, Version=14.0.0.0. 无法加载文件或程序集'Microsoft.SqlServer.Management.SDK.SqlStudio,版本= 14.0.0.0。

public class WindowsActivationHandler
{
    public event WindowActivated RegisteredServerActivated;
    public event WindowActivated RegisteredServersDeactivated;
    public event WindowActivated ObjectExplorerActivated;
    public event WindowActivated ObjectExplorerDeactivated;
    public event WindowActivated SqlEditorActivated;
    public event WindowActivated SqlEditorDeactivated;
    public event WindowActivated WindowClosing;


    public WindowsActivationHandler()
    {
        var app = (DTE2)ServiceCache.ExtensibilityModel;
        app.Events.WindowEvents.WindowActivated += WindowEvents_WindowActivated;
        app.Events.WindowEvents.WindowClosing += WindowEvents_WindowClosing;
    }
}

I have error on this line: 我在这条线上有错误:

var app = (DTE2)ServiceCache.ExtensibilityModel;

我相信这是因为14.0.0.0的程序集版本专用于SSMS2017。我认为新的参考应该是15.0.0.0的版本,它适用于SSMS 2018。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 2017服务器中无法加载文件或程序集Microsoft.SqlServer.management.sdk.sfc版本11.0.0.0 - Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 in 2017 server 无法加载文件或程序集 Microsoft.VisualStudio.Shell,Design Version=14.0.0.0 - Could not load file or assembly Microsoft.VisualStudio.Shell,Design Version=14.0.0.0 无法加载文件或程序集“Microsoft.VisualStudio.Diagnostics.PerformanceProvider,版本=14.0.0.0 - Could not load file or assembly 'Microsoft.VisualStudio.Diagnostics.PerformanceProvider, Version=14.0.0.0 程序集加载错误 - > 无法加载文件或程序集“Microsoft.SqlServer.Types,版本 = 10.0.0.0”或其依赖项之一 - Assembly Load Error - > Could not load file or assembly 'Microsoft.SqlServer.Types, Version=10.0.0.0' or one of its dependencies 无法加载文件或程序集'Microsoft.SqlServer.Smo,版本= 10.0.0 - Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=10.0.0 无法加载文件或程序集'Microsoft.SqlServer.TransactSql,Version = 13.0.0.0 - Could not load file or assembly 'Microsoft.SqlServer.TransactSql, Version=13.0.0.0 无法加载文件或程序集 'Microsoft.SqlServer.Types,版本 = 11.0.0.0 - Could not load file or assembly 'Microsoft.SqlServer.Types, Version=11.0.0.0 无法加载文件或程序集“Microsoft.SqlServer.Management.RegisteredServers,版本=15.2.0.0,文化=中性,PublicKeyToken=89845dcd8080cc91” - Could not load file or assembly 'Microsoft.SqlServer.Management.RegisteredServers, Version=15.2.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' 在vs 2017上打开TFS XAML构建时无法加载文件或程序集'Microsoft.TeamFoundation.Build.Workflow,版本14.0.0.0' - Could not load file or assembly 'Microsoft.TeamFoundation.Build.Workflow, version 14.0.0.0' when opening tfs XAML build on vs 2017 无法加载文件或程序集 'Microsoft.Xrm.Sdk,版本 = 9.0.0.0 - Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM