Skip to content

[Xamarin.Android.Build.Tasks] make designer MSBuild targets a no-op #9473

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 31, 2024

Conversation

jonathanpeppers
Copy link
Member

Context: https://developercommunity.visualstudio.com/t/XamarinAndroid-Designer---Replacement/10728132

As the Android designer is no longer supported in Visual Studio, we can remove the MSBuild logic for the following targets:

  • GetExtraLibraryLocationsForDesigner

  • SetupDependenciesForDesigner

Since these are public MSBuild target names, we should probably leave them in and "do nothing".

This also will simplify things if we ever refactor <GenerateJavaStubs/> and friends as this removes a caller.

I also removed the DesignerTests.cs file that was testing these.

Context: https://developercommunity.visualstudio.com/t/XamarinAndroid-Designer---Replacement/10728132

As the Android designer is no longer supported in Visual Studio, we
can remove the MSBuild logic for the following targets:

* `GetExtraLibraryLocationsForDesigner`

* `SetupDependenciesForDesigner`

Since these are public MSBuild target names, we should probably leave
them in and "do nothing".

This also will simplify things if we ever refactor
`<GenerateJavaStubs/>` and friends as this removes a caller.

I also removed the `DesignerTests.cs` file that was testing these.
<_MergedManifestDocuments Condition=" '$(AndroidManifestMerger)' == 'legacy' " Include="@(ExtractedManifestDocuments)" />
</ItemGroup>

<GenerateJavaStubs
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to refactor this target soon (potentially moving it into a trimmer step), so removing a caller is nice!

@jonathanpeppers jonathanpeppers marked this pull request as ready for review October 31, 2024 13:18
@dellis1972 dellis1972 merged commit 13b7378 into main Oct 31, 2024
58 checks passed
@dellis1972 dellis1972 deleted the SetupDependenciesForDesigner branch October 31, 2024 13:38
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 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.

2 participants