maikebing / GitLab.VisualStudio

GitLab Extension for Visual Studio
MIT License
65 stars 27 forks source link

Won't load in VS 2017 #160

Open jeffoulet opened 3 years ago

jeffoulet commented 3 years ago

Installed product versions

Current behavior

Failed to load plugin at VS start:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Das System kann die angegebene Datei nicht finden. File name: 'Microsoft.VisualStudio.Threading, Version=16.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at GitLab.TeamFoundation.ViewModels.ConnectSectionViewModel.LoadRepositoriesAsync() at GitLab.TeamFoundation.ViewModels.ConnectSectionViewModel..ctor(IMessenger messenger, IShellService shell, IStorage storage, ITeamExplorerServices teamexplorer, IViewFactory viewFactory, IWebService web) at GitLab.TeamFoundation.Connect.GitLabConnectSection.InitializeView(SectionInitializeEventArgs e) at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.TeamExplorerSectionBase.Initialize(Object sender, SectionInitializeEventArgs e) at GitLab.TeamFoundation.Connect.GitLabConnectSection.Initialize(Object sender, SectionInitializeEventArgs e) at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerSectionHost.Initialize(Object context)

whocare87 commented 3 years ago

Hi,

Checked on the source code. the reference of Microsoft.VisualStudio.Threading is higher then the installed version of VS2017. able to rebuild the package with the correct dll?

roeynissim commented 3 years ago

same issue with VS2019

nellonet commented 3 years ago

I have same error about jeffoulet (in vs2017). I have installed all the last version but I have not resolved. Does everyone have a solution? thanks

sirboozebum commented 3 years ago

I also get the same error message.

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Threading, Version=16.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at GitLab.TeamFoundation.ViewModels.ConnectSectionViewModel.LoadRepositoriesAsync() at GitLab.TeamFoundation.ViewModels.ConnectSectionViewModel..ctor(IMessenger messenger, IShellService shell, IStorage storage, ITeamExplorerServices teamexplorer, IViewFactory viewFactory, IWebService web) at GitLab.TeamFoundation.Connect.GitLabConnectSection.InitializeView(SectionInitializeEventArgs e) at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.TeamExplorerSectionBase.Initialize(Object sender, SectionInitializeEventArgs e) at GitLab.TeamFoundation.Connect.GitLabConnectSection.Initialize(Object sender, SectionInitializeEventArgs e) at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerSectionHost.Initialize(Object context)

marcoguevara commented 3 years ago

I got this error on VS Professional 2017 Version 15.9.28

chriserikbarnes commented 3 years ago

Here is how I fixed it.

  1. go to nugget https://www.nuget.org/packages/Microsoft.VisualStudio.Threading/16.5.132
  2. download package. change extension to .zip and unpack it
  3. find your extensions folder e.g. [user]/AppData/Local/Microsoft/VisualStudio/[random value]/Extensions/[random value that contains GitLab Extension] note: you will see GitLab dll files so you know you are in the right place
  4. copy the Microsoft.VisualStudio.Threading.dll into your GitLab extension folder (above)
  5. restart VisualStudio and the error should be gone
idea-zone commented 3 years ago

Here is how I fixed it.

  1. go to nugget https://www.nuget.org/packages/Microsoft.VisualStudio.Threading/16.5.132
  2. download package. change extension to .zip and unpack it
  3. find your extensions folder e.g. [user]/AppData/Local/Microsoft/VisualStudio/[random value]/Extensions/[random value that contains GitLab Extension] note: you will see GitLab dll files so you know you are in the right place
  4. copy the Microsoft.VisualStudio.Threading.dll into your GitLab extension folder (above)
  5. restart VisualStudio and the error should be gone

But It's will get a new issue: System.MissingMethodException: 找不到方法:“Microsoft.VisualStudio.Threading.JoinableTaskFactory Microsoft.VisualStudio.Shell.ThreadHelper.get_JoinableTaskFactory()”。 在 GitLab.TeamFoundation.Sync.GitLabPublishSection.Initialize(Object sender, SectionInitializeEventArgs e) 在 Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerSectionHost.Initialize(Object context)

Palmutip commented 2 years ago

Here is how I fixed it.

  1. go to nugget https://www.nuget.org/packages/Microsoft.VisualStudio.Threading/16.5.132
  2. download package. change extension to .zip and unpack it
  3. find your extensions folder e.g. [user]/AppData/Local/Microsoft/VisualStudio/[random value]/Extensions/[random value that contains GitLab Extension] note: you will see GitLab dll files so you know you are in the right place
  4. copy the Microsoft.VisualStudio.Threading.dll into your GitLab extension folder (above)
  5. restart VisualStudio and the error should be gone

Aqui deu certo amigo. Muito obrigado

rogerwperkins commented 2 years ago

I was able to connect and clone my GitLab repository using the GitHub extension.