Visual-Studio
Visual-Studio copied to clipboard
Visual Studio 2017 fails to load like in #23
Bug description:
Here's the error report from ActivityLog.xml
:
<entry>
<record>1549</record>
<time>2021/02/17 21:52:54.580</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [DiscordRPCVSPackage]Source: 'discord-rpc-vs' Description: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 at discord_rpc_vs.DiscordRPCVSPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)
 at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass17_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)
 at Microsoft.VisualStudio.Services.VsTask.GetResult()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</description>
<guid>{EA99CD90-97EA-40A5-BE3C-2F3377242800}</guid>
<hr>80070002</hr>
<errorinfo></errorinfo>
</entry>
Reproduction steps:
Steps to reproduce the behavior:
- Install from here https://marketplace.visualstudio.com/items?itemName=1TheNikita.drpcvs2019
- Load Visual Studio 2017.
- Enable Discord Rich Presence.
Expected behavior:
No error on startup.
Screenshots:

Desktop (please complete the following information):
- OS: Windows 10
- Visual Studio 2017
- Extension Version: 5.3
Additional context
None.
Hi! Thanks for writing about the bug.
Try committing these items:
- Reinstall the extension
- Reinstall Discord
- Reset VIsual Studio
Same issue here as of version 5.5 (not sure if this is the exact version this started happening though); reinstalling the extension, Discord, and reinstalling VS entirely didn't help.
Try downloading the version that downloads via file here. Have you uninstalled all versions of the plugin before updating? Because of the transfer of the plugin to me, there may be conflicts with the old version.
Same issue here as of version 5.5 (not sure if this is the exact version this started happening though); reinstalling the extension, Discord, and reinstalling VS entirely didn't help.
I too had this issue.
Reinstalling fixed it.