Commit c7090d0
committed
[Xamarin.Android.Tools.AndroidSdk] Remove net461
@DmitriyKirakosyan ran into a build failure when attempting to bump
xamarin/android-sdk-installer to use commit bfb66f3:
external\androidtools\external\xamarin-android-tools\src\Xamarin.Android.Tools.AndroidSdk\Xamarin.Android.Tools.AndroidSdk.csproj(0,0):
Error MSB4057: The target "BuiltProjectOutputGroupDependencies" does not exist in the project.
[Further investigation][0] showed that the MSB4057 occurs because
`Xamarin.Android.Tools.AndroidSdk.csproj` uses the `$(TargetFrameworks)`
property (plural), and to avoid the MSB4057 the `$(TargetFramework)`
property (singular) should instead be used.
As `Xamarin.Android.Tools.AndroidSdk.csproj` also targets
.NET Standard 2.0, and [.NET Standard 2.0 supports .NET 4.6][1],
we can fix the MSB4057 by dropping the build of `net461`.
[0]: https://stackoverflow.com/a/43481827
[1]: https://docs.microsoft.com/en-us/dotnet/standard/net-standard1 parent bfb66f3 commit c7090d0
File tree
1 file changed
+1
-1
lines changed- src/Xamarin.Android.Tools.AndroidSdk
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments