简体   繁体   中英

Could not load file or assembly 'Microsoft.SqlServer.TransactSql, Version=13.0.0.0

The possible answer posted above is wrong.

Cannot debug a project because of this error message.

**

Could not load file or assembly 'Microsoft.SqlServer.TransactSql, Version=13.0.0.0

**

The project type is a VSIX extension.

I'm guessing that somehow, the VS SQL support has been whacked somehow... but not sure what to do to fix.

I found this in Add/Remove programs, but do not know how they were installed (maybe through VS install?).
2016版SQL

My VS Version is:

在此输入图像描述

Please advise.

This line was causing the issues, I wanted to provide a listing of all classes in assemblies to user to see versioning. When I commented it out, problem disappeared.

var types = AppDomain.CurrentDomain.GetAssemblies().Select(a => a.GetTypes()).ToList();

I still don't know why I have the 2016 SSMS installs, maybe I tried it out earlier this summer. But, oddly why does this line of code above cause the problem? Weird.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM