-
Notifications
You must be signed in to change notification settings - Fork 681
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
Microsoft.Build.Tasks.Git.targets(20,5): error : Unable to locate repository containing directory #211
Comments
What .NET Core SDK are you on? I found this similar issue, the fix was to install a newer version of the .NET Core SDK. BaGet requires v2.2+ |
I tried this on couple of computers that have different OS. They all have .net core 2.2+. By the way I can run pre-compiled BaGet project by executing dotnet BaGet.dll but the problem is that I can't build the source code. |
Jeez you’re hitting the strangest problems! 😄 It seems like the second problem is separate from the first. Can you reproduce the first problem with just For the second problem I’ll try updating my Mac to Mojave and I’ll see if the problem reproduces for me. For now, you can get around this by removing the Sorry about all these issues! |
Murphy has always been with me and will soon cause me lose my desire to work as a software developer 😃 For the second problem, I removed the reference. This solved the problem but now I have another one. I think this problem is related to first one. |
How are you getting the source code that you build? I was able to reproduce this error when building the source code from the latest GitHub release. If this is indeed the problem, you can get around this by using git to get the latest release's source code:
|
I solved the problem by removing Nerdbank.GitVersioning and Microsoft.Build.Tasks.Git fromDirectory.Build.props. |
I’ll move away from NerdBank.GitVersioning in the future and rewrite the versioning generation using Azure Pipelines. Hopefully you won’t have to do this hack for long. |
Hi,
While building the project, an error below occurs. I know it's not related to BaGet but any idea how to solve?
Thanks.
D:\Users\qqqq.nuget\packages\microsoft.build.tasks.git\1.0.0-beta-63127-02\build\Microsoft.Build.Tasks.Git.targets(20,5): error : Unable to locate repository containing directory 'd:\Users\qqqq\Desktop\BaGetSource\src\BaGet.Protocol'. [d:\Users\qqqq\Desktop\BaGetSource\src\BaGet.Protocol\BaGet.Protocol.csproj]
The text was updated successfully, but these errors were encountered: