No stated dependency on Microsoft.VisualStudio.Threading, Version=17.3.0.0
See original GitHub issueUpgrading our project to the latest version (10.2) as resulted in us being unable to utilize the Telnet Client due to an undocumented dependency on the Microsoft.VisualStudio.Threading library.
Stack Trace:
System.SystemException: Custom Exception. Cause was: The type initializer for 'PrimS.Telnet.Client' threw an exception.
---> System.TypeInitializationException: The type initializer for 'PrimS.Telnet.Client' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=17.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Threading, Version=17.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
--- End of inner exception stack trace ---
at PrimS.Telnet.Client.set_IsWriteConsole(Boolean value)
at [...]
We are able to navigate around this by including it in our project for the time being, but this needs to be listed within the Nuspec in order for Nuget to correctly identify and negotiate dependency on this library.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Error in VS22 Can't find "Microsoft.VisualStudio.Threading, ...
It says it can't find the file or assembly Microsoft.VisualStudio.Threading, Version=17.3.0.0. In my project references it shows Microsoft.
Read more >Troubleshoot .NET Framework targeting errors
This article provides resolutions for MSBuild errors that might occur because of reference issues.
Read more >Unable to build a project with net7 RC 1 · Issue #10234
It appears that the required workloads are not installed when you download visual studio. Additionally, they cannot be found on nuget when ...
Read more >Error MSB4062 The "TypeScript.Tasks. ...
The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies ...
Read more >Solution to Visual Studio 2022 messing up ...
Check that it is installed and that the version specified in global.json (if any) matches the installed version.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Validated that version 11.2 works without that dependency on .net 6! Thank you for the assistance @9swampy!
Sorry I missed this. V0.11.0 was a kneejerk reaction to just include the required dependencies to get things working again.
https://github.com/Wumpf/IncludeToolbox/issues/73 - essentially same problem was observed here. Known issue with MS - appears to be a known issue that MS closed as low priority
Thanks for highlighting the unintended consequence. Looking in to it further… I’ll think I’ll try to follow Point 2 - Warning not applicable to .NET Core instead of accepting the VSTHRD102 warning