question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SourceLink fails on macOS Mojave with "PlatformNotSupportedException: osx.10.14-x64"

See original GitHub issue

Repro

Create the sample in the README of this repo and dotnet build

Error

/Users/nmcmaster/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63102-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: The "Microsoft.Build.Tasks.Git.LocateRepository" task failed unexpectedly. [/Users/nmcmaster/dev/natemcmaster/dotnet-serve/src/dotnet-serve/dotnet-serve.csproj]
/Users/nmcmaster/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63102-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.PlatformNotSupportedException: osx.10.14-x64 [/Users/nmcmaster/dev/natemcmaster/dotnet-serve/src/dotnet-serve/dotnet-serve.csproj]
/Users/nmcmaster/.nuget/packages/microsoft.build.tasks.git/1.0.0-beta-63102-01/build/Microsoft.Build.Tasks.Git.targets(20,5): error MSB4018:    at Microsoft.Build.Tasks.Git.RuntimeIdMap.GetNativeLibraryDirectoryName() in /_/src/Microsoft.Build.Tasks.Git/RuntimeIdMap.cs:line 22 [/Users/nmcmaster/dev/natemcmaster/dotnet-serve/src/dotnet-serve/dotnet-serve.csproj]

Details

Using: 1.0.0-beta-63102-01

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tmatcommented, Jul 6, 2018

@bording Absolutely. All this RID resolution and library loading needs to be implemented in .NET Core.

0reactions
natemcmastercommented, Jul 6, 2018

I never suggested you should build a native library. I’m only suggesting you follow the behavior of the native host.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found