-
-
Notifications
You must be signed in to change notification settings - Fork 802
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 build Moq: "The Microsoft.Build.Tasks.Git.LocateRepository
task failed unexpectedly."
#1060
Comments
Seems like you're building with a preview version of .NET tooling, perhaps try building with a stable version. |
I'll try that. Meanwhile I'm gonna close this issue. Thanks for your response. |
After spending a nice half an hour uninstalling and installing some versions of .NET, I still can't get it to work. Here's my current output, what am I missing?
|
This comment has been minimized.
This comment has been minimized.
Scratch my above comment, I can reproduce. I'll look into it. |
Microsoft.Build.Tasks.Git.LocateRepository
task failed unexpectedly."
@weitzhandler, should be fixed now. Please let me know if this build error has gone away for you, too. |
Well now
|
Hmm, I suspect this is the same problem as dotnet/fsharp#6987, for which a fix has been merged. Guessing from dotnet/fsharp@038fd2f, I suspect this issue will go away in Visual Studio ≥16.8. (If this issue persists after a VS update, and several more Moq devs are running into it, we will have to consider whether to stop strong-naming the test assemblies; but let's keep that as is for now.) |
Yikes. Another reason to start using preview versions of VS for me. I'm currently on a project at work that upgraded to .NET 5, but jumped to the latest version (RC) which requires VS preview 😈 I'm fine with preview SDKs but not the biggest fan of using a preview IDE... |
You're welcome @weitzhandler. Regarding VS, at least you can still use it... VS 2019 has become near unusable on my (fairly recent!) laptop because it's sooo resource hungry. I'd use VS 2017, but obviously that doesn't work with projects that target .NET Core 3 (basically everything these days). While I love the idea of a managed compiler (Roslyn) and all the smart code analysis that it can do now, one can tell that all of this doesn't come for free. 😞 |
wow didn't know that. that maybe explains why i started hating working on my laptop lately. |
Seems like a more common issue with this beta version of the Microsoft.SourceLink.Github package. A simple update to 1.0.0 solves this. See also: devlooped/moq#1060
Seems like a more common issue with this beta version of the Microsoft.SourceLink.Github package. A simple update to 1.0.0 solves this. See also: devlooped/moq#1060
Hello,
Trying to build this project in VS 2019 (16.7.4), results in the following errors:
I have the following SDKs installed:
Am I missing any prerequisite?
Trying
dotnet build
results in the following output:The text was updated successfully, but these errors were encountered: