Skip to content

Conversation

@jonpryor
Copy link
Contributor

@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 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,
we can fix the MSB4057 by dropping the build of 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
@joj joj merged commit 12f52ac into dotnet:master Feb 26, 2020
@joj
Copy link
Member

joj commented Feb 26, 2020

@monojenkins backport to d16-6

jonpryor pushed a commit that referenced this pull request Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants