question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

extension no longer loads in VS2019 after PR #331

See original GitHub issue

Describe the bug

extension no longer loads in VS2019 after PR #331

To Reproduce Steps to reproduce the behavior:

  1. install extension or update from older version
  2. start VS2019 and you get an error message

Expected behavior

extension should work fine in VS2019

Versions(please complete the following information):

  • OS: Windows 10
  • Devskim Version 0.5.6.63595

Additional context

SetSite failed for package [VSPackage]Source: 'Microsoft.DevSkim.VSExtension’ Description: Die Datei oder Assembly “Microsoft.VisualStudio.Threading, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden. System.IO.FileNotFoundException: Die Datei oder Assembly “Microsoft.VisualStudio.Threading, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden. File name: 'Microsoft.VisualStudio.Threading, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’at Microsoft.DevSkim.VSExtension.VSPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()

PR #331 updates dependencies to VS2022 version (version 17.x) so loading fails under VS2019 as it is 16.x

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MagicAndre1981commented, Oct 26, 2021

you may have installed the VS2022 RC/preview side by side to VS2019 so you have the required dll on your system , I always run each VS version in a separate VM

That may be it - I do have 2022 side by side, but I was running the extension in 2019

this doesn’t matter, your system has the file so VS2019 uses it. New version 0.6.3.46140 works fine again in VS2019 and highlights issues in .cs files.

0reactions
gfscommented, Oct 26, 2021

Very odd. I did confirm that it worked running debug from Visual Studio before merging

you may have installed the VS2022 RC/preview side by side to VS2019 so you have the required dll on your system , I always run each VS version in a separate VM

That may be it - I do have 2022 side by side, but I was running the extension in 2019 (and it in fact it is not test or marked compatible with 2022 yet, I’ve just been using it to test .NET 6). Just pushed another commit that downgrades all the other 17.x packages to 16.x.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2019 Extensions loading infinitely
1. Try to start visual studio without all installed extensions :"You can either run devenv.exe /SafeMode using the command line or by creating...
Read more >
Visual Studio 2019 Professional 16.11.28.0
The easiest way to add more development features is to use the workload packages listed in the Release Notes section. All package parameters...
Read more >
Update a Visual Studio extension for Visual Studio 2022
Visual Studio 2022 will not load any extension that targets an earlier version of Visual Studio. Learn how to migrate your extensions for ......
Read more >
Kenvue
Upon completion of the Distribution, if pursued, we will no longer qualify as a “controlled company” as defined under the corporate governance rules...
Read more >
Conan Documentation
Conan is a dependency and package manager for C and C++ languages. It is free and open-source, works in all platforms ( Windows,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found