New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create repository in VS2015 #1446

meaghanlewis opened this Issue Jan 31, 2018 · 0 comments


None yet
1 participant

meaghanlewis commented Jan 31, 2018


  • GitHub Extension for Visual Studio version:
  • Visual Studio version:
    Microsoft Visual Studio Community 2015
    Version 14.0.25431.01 Update 3

What happened
I try to create a GitHub or repository in VS2015, but nothing happens after I press the create button.
screen shot 2018-01-31 at 2 56 07 pm

In the log, I see:

System.InvalidOperationException: Could not locate any instances of contract Microsoft.TeamFoundation.Git.Controls.Extensibility.IGitRepositoriesExt.
   at GitHub.VisualStudio.GitHubServiceProvider.GetService(Type serviceType) in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 192
   at GitHub.VisualStudio.GitHubServiceProvider.GetService[T]() in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 198
   at GitHub.VisualStudio.GitHubProviderDispatcher.GetService[T]() in C:\projects\visualstudio\src\GitHub.VisualStudio\Services\GitHubServiceProvider.cs:line 61
   at GitHub.Services.VSGitServices.<Clone>d__5.MoveNext() in C:\projects\visualstudio\src\GitHub.TeamFoundation.14\Services\VSGitServices.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GitHub.Services.RepositoryCloneService.<CloneRepository>d__6.MoveNext() in C:\projects\visualstudio\src\GitHub.App\Services\RepositoryCloneService.cs:line 66```

**Note:** This is only a problem with VS2015 and VS2017 works as expected.

grokys added a commit that referenced this issue Feb 1, 2018

Fix cloning after creating a repository.
`DoCreate` needs to set `ServiceProvider.GitServiceProvider` in order for
`IGitRepositoriesExt` to be found to clone the created repository.

Fixes #1446

@shana shana closed this in #1447 Feb 1, 2018

@shana shana added this to Done in BUGS via automation Feb 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment