Skip to content
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

Build fails on MacOS with "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly. #52

Closed
jthelin opened this issue Oct 13, 2018 · 1 comment
Assignees
Labels

Comments

@jthelin
Copy link
Owner

jthelin commented Oct 13, 2018

Even though the installed mono version is 5.12, a local build on MacOS fails with error
MSB4018: The "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly.

$ mono --version
Mono JIT compiler version 5.12.0.309 (2018-02/39d89a335c8 Thu Sep 27 06:54:53 EDT 2018)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug
	Interpreter:   yes
	LLVM:          yes(3.6.0svn-mono-release_60/8b1520c8aae)
	GC:            sgen (concurrent by default)

Failure mode:

error MSB4018: The "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly. 

error MSB4018: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Tasks.Git.TaskImplementation' threw an exception.
 ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build.Tasks.Git.Operations' or one of its dependencies

X-ref: Similar to bug #48 "Travis-CI mono build started failing on 2018-10-05"

@jthelin jthelin added the bug label Oct 13, 2018
@jthelin jthelin self-assigned this Oct 13, 2018
jthelin added a commit that referenced this issue Oct 13, 2018
Visual Studio for Mac cleaned up some project / package references.

Fixes #52
jthelin added a commit that referenced this issue Oct 13, 2018
Don't run Microsoft.SourceLink.GitHub in Debug builds.

Visual Studio for Mac cleaned up some project / package references.

Fixes bug #52 - `Build fails on MacOS with "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly.`
@jthelin
Copy link
Owner Author

jthelin commented Oct 13, 2018

Fixed by PR #53

@jthelin jthelin closed this as completed Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant