简体   繁体   中英

Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.8.0.0

I have a vsix project. I use commandtool and create files. I upgraded .net framework (4.6.1 to 4.7.2) and packages

包裹清单

I run project, everything is ok. But I get error when I click Extension's button.
错误

I checked error in XML file. Error description is

Description: Could not load file or assembly Microsoft.VisualStudio.Threading, Version=16.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; or one of its dependencies

But there is package in References

Do you have any idea?

Best Regards

When you upgraded to the newer version of Microsoft.VisualStudio.Threading, you upgraded to a version that's higher than what your Visual Studio is shipping with as a part of the platform. Although there are ways you could make your version now be the preferred version, the easiest answer is probably 'don't do that', since you're artificially limiting which versions of VS your extension could install onto.

Unless you had a specific reason to upgrade, you're probably best off leaving the version there.

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