Skip to content

Avoid XA5207 for design-time builds #7434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Conversation

dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Oct 4, 2022

Fixes #7405

Raising a XA5207 Error during a design time build is causing some
problems for the auto sdk installer. The design time build is run for
all frameworks. So you end up in a position when you have the Windows
framework selected in the IDE and the auto sdk installer will try to
install an Android framework. Its very confusing for the user.

So lets not raise this Error during a design time build.

Fixes dotnet#7405

Raising a XA5207 Error during a design time build is causing some
problems for the auto sdk installer. The design time build is run for
all frameworks. So you end up in a position when you have the Windows
framework selected in the IDE and the auto sdk installer will try to
install an Android framework. Its very confusing for the user.

So lets not raise this Error during a design time build.
@dellis1972 dellis1972 marked this pull request as ready for review October 5, 2022 09:52
@jonpryor jonpryor merged commit 5044377 into dotnet:main Oct 6, 2022
jonathanpeppers pushed a commit that referenced this pull request Oct 10, 2022
)

Fixes: #7405

Raising an XA5207 error during a [design time build][0] in
Visual Studio (Windows) can cause problems in the auto sdk installer:

	error XA5207: Could not find android.jar for API level 31.
	  This means the Android SDK platform for API level 31 is not installed.
	  Either install it in the Android SDK Manager (Tools > Android > Android SDK Manager…),
	  or change the Xamarin.Android project to target an API version that is installed.
	  (C:\Program Files (x86)\Android\android-sdk\platforms\android-31\android.jar missing.)

The design time build is run for all frameworks; you can end up in a
position where you have the Windows framework selected in the IDE and
the auto sdk installer will try to install an Android framework.
Its very confusing for the user.

Avoid raising error XA5207 during design time builds.

[0]: https://github.com/dotnet/project-system/blob/3f5fb23d3fa91719c93b68f56e99aba6b18939aa/docs/design-time-builds.md
grendello added a commit to grendello/xamarin-android that referenced this pull request Oct 10, 2022
* main:
  Enable marshal methods support by default (dotnet#7351)
  Bump to dotnet/java-interop@e1ee4b1c, xamarin/android-api-docs@bc5443dc (dotnet#7358)
  [xaprepare] Support Gentoo Linux for OS detection (dotnet#7442)
  [Xamarin.Android.Build.Tasks] Avoid XA5207 for design-time builds (dotnet#7434)
  [Mono.Android] Improve generated API docs diff (dotnet#7427)
  Localized file check-in by OneLocBuild Task: Build definition ID 11410: Build ID 6765281 (dotnet#7430)
  LEGO: Merge pull request 7429
  Bump to dotnet/java-interop@a0728ed5 (dotnet#7420)
grendello added a commit to grendello/xamarin-android that referenced this pull request Oct 10, 2022
* main:
  [xaprepare] Support Gentoo Linux for OS detection (dotnet#7442)
  [Xamarin.Android.Build.Tasks] Avoid XA5207 for design-time builds (dotnet#7434)
@dellis1972 dellis1972 deleted the Issue7405 branch November 30, 2022 15:59
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 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.

See if we can avoid XA5207 for design-time builds
2 participants