This repository was archived by the owner on May 1, 2024. It is now read-only.
Commit 510e8a0
authored
[android] add .NET 8 multi-targeting support (#50)
Context: dotnet/android#7900
After attempted removal of .NET 6 (from .NET 8), we got the build error:
Xamarin.Legacy.Android.targets(33,3): error : Could not resolve SDK "Microsoft.Android.Sdk.net6". Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
Xamarin.Legacy.Android.targets(33,3): error : SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" returned null.
Xamarin.Legacy.Android.targets(33,3): error : The NuGetSdkResolver did not resolve this SDK because there was no version specified in the project or global.json.
Xamarin.Legacy.Android.targets(33,3): error : MSB4276: The default SDK resolver failed to resolve SDK "Microsoft.Android.Sdk.net6" because directory "/Users/runner/work/1/s/xamarin-android/bin/Release/dotnet/sdk/8.0.100-preview.3.23163.4/Sdks/Microsoft.Android.Sdk.net6/Sdk" did not exist.
Add support for the .NET 8 SDK, I am unsure how it was working at all
before? It must have somehow imported the .NET 6 targets.1 parent 3489d96 commit 510e8a0
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
0 commit comments