Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Jan 8, 2021

Java.Interop is using Microsoft.Build.NoTargets version 1.0.110, while Xamarin.Android uses 2.0.1. This causes some build warnings when building XA:

/Users/builder/azdo/_work/1/s/xamarin-android/external/Java.Interop/tools/java-source-utils/java-source-utils.csproj :
warning MSB4240: Multiple versions of the same SDK "Microsoft.Build.NoTargets" cannot be specified. 
The previously resolved SDK version "2.0.1" from location "/Users/builder/azdo/_work/1/s/xamarin-android/src/
java-runtime/java-runtime.csproj" will be used and the version "1.0.110" will be ignored.

Fix this by moving the version number from the individual csproj's and into a global.json with a version matching XA's global.json.

@jpobst jpobst marked this pull request as ready for review January 8, 2021 15:44
@jpobst jpobst requested a review from jonpryor January 8, 2021 15:44
@jonpryor jonpryor merged commit d1b872a into master Jan 11, 2021
@jonpryor jonpryor deleted the notargets-version branch January 11, 2021 20:23
@jpobst jpobst added this to the 11.2 (16.10 / 8.10) milestone Feb 2, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants