Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

SourceLink seems to fail while building #95

Closed
7sharp9 opened this issue Oct 8, 2018 · 3 comments
Closed

SourceLink seems to fail while building #95

7sharp9 opened this issue Oct 8, 2018 · 3 comments

Comments

@7sharp9
Copy link
Collaborator

7sharp9 commented Oct 8, 2018

Issue is already logged elsewhere:
dotnet/sourcelink#179
dotnet/sourcelink#155

  Microsoft.Build.Tasks.Git.targets(20, 5): [MSB4018] The "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly.
System.BadImageFormatException: Method has no body
File name: 'LibGit2Sharp'
  at LibGit2Sharp.Core.Proxy.git_buf_free (LibGit2Sharp.Core.Handles.GitBuf buf) [0x00000] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Core.Handles.GitBuf.Dispose () [0x00000] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Core.Proxy.ConvertPath (System.Func`2[T,TResult] pathRetriever) [0x0002e] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Core.Proxy.git_repository_discover (LibGit2Sharp.Core.FilePath start_path) [0x00005] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at LibGit2Sharp.Repository.Discover (System.String startingPath) [0x00006] in <06ab184b4ccd4259a7a7af2756f77645>:0 
  at Microsoft.Build.Tasks.Git.GitOperations.LocateRepository (System.String directory) [0x00000] in <859aea960c5c4805ad7e678061631919>:0 
  at Microsoft.Build.Tasks.Git.RepositoryTasks.LocateRepository (Microsoft.Build.Tasks.Git.LocateRepository task) [0x00007] in <859aea960c5c4805ad7e678061631919>:0 
  at Microsoft.Build.Tasks.Git.LocateRepository.Execute () [0x00038] in <77223f90773a4c0e88a42a7f38595356>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in <9d534585aab94a68ab40b57567b8fbbe>:0 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x001f6] in <9d534585aab94a68ab40b57567b8fbbe>:0 
@ctaggart
Copy link
Owner

ctaggart commented Oct 8, 2018

@7sharp9 You are trying to build with mono?

@7sharp9
Copy link
Collaborator Author

7sharp9 commented Oct 9, 2018 via email

@ctaggart
Copy link
Owner

Accepting PRs with a workaround: enricosada/falanx@d525c2e

Although I'd prefer to just wait until it is fixed Microsoft.SourceLink.Git. They are working on it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants