SourceLink fails on macOS Mojave with "PlatformNotSupportedException: osx.10.14-x64"
See original GitHub issueRepro
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:
- Created 5 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bording Absolutely. All this RID resolution and library loading needs to be implemented in .NET Core.
I never suggested you should build a native library. I’m only suggesting you follow the behavior of the native host.