You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a scenario where we need to test a Visual Studio extension. Effectively, it is a class library project that references Microsoft.VisualStudio.SDK package.
When executing tests from Visual Studio everything works as expected.
When executing the tests from command line using the executable the error occurs:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
The text was updated successfully, but these errors were encountered:
The problem here is that VsixLib.csproj is adding ExcludeAssets="runtime" to the PackageReference of Microsoft.VisualStudio.SDK, so things doesn't flow correctly to the test project.
Either the ExcludeAssets should be removed, or alternatively, the PackageReference needs to be added to the test project as well.
From VSIX development point of view, I'm not sure what the recommendation is. But the behavior on MSTest/MTP side is expected.
We have a scenario where we need to test a Visual Studio extension. Effectively, it is a class library project that references Microsoft.VisualStudio.SDK package.
When executing tests from Visual Studio everything works as expected.
When executing the tests from command line using the executable the error occurs:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Interop, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
The text was updated successfully, but these errors were encountered: