Skip to content
New issue

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

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

Already on GitHub? # to your account

[One .NET] update the .NET 6 packs used in .NET 7 #7104

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Jun 16, 2022

Context: https://github.com/dotnet/maui/releases/tag/6.0.400
Context: #7023

MAUI SR 1 shipped along with a new .NET 6 Android workload. We should
be able to use these packs in .NET 7. This would occur when building
net6.0-android apps with a .NET 7 SDK.

Since #7023 is in that release, we can:

  • Specify the .NET 6 packs as sdk where appropriate.
  • Condition AutoImport.props to apply for .NET 7-only.
  • We also need to remove $(_DefaultJavaSourceJarPattern) like we did
    in .NET 6.

@jonathanpeppers
Copy link
Member Author

This breaks Xamarin.Legacy.Sdk, need to investigate why.

Context: https://github.com/dotnet/maui/releases/tag/6.0.400
Context: dotnet#7023

MAUI SR 1 shipped along with a new .NET 6 Android workload. We should
be able to use these packs in .NET 7. This would occur when building
`net6.0-android` apps with a .NET 7 SDK.

Since dotnet#7023 is in that release, we can:

* Specific the .NET 6 packs as `sdk` where appropriate.
* Condition `AutoImport.props` to apply for .NET 7-only.
* We also need to remove `$(_DefaultJavaSourceJarPattern)` like we did
  in .NET 6.
@jonathanpeppers
Copy link
Member Author

Ok, the test that failed just needed to update Xamarin.Legacy.Sdk, let's see what the next run does.

@jonathanpeppers jonathanpeppers marked this pull request as ready for review June 21, 2022 18:08
@jonathanpeppers jonathanpeppers merged commit 2ca2a10 into dotnet:main Jun 22, 2022
@jonathanpeppers jonathanpeppers deleted the NET6Android32.0.415 branch June 22, 2022 02:50
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants