Skip to content

Commit c7090d0

Browse files
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-standard
1 parent bfb66f3 commit c7090d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Xamarin.Android.Tools.AndroidSdk/Xamarin.Android.Tools.AndroidSdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>..\..\product.snk</AssemblyOriginatorKeyFile>
77
<Title>Xamarin.Android.Tools</Title>

0 commit comments

Comments
 (0)