Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Uwp retarget to 17763 / 1809 #942

Closed
wants to merge 25 commits into from

Conversation

inforithmics
Copy link
Contributor

@inforithmics inforithmics commented Feb 19, 2021

Description of Change

Bugs Fixed

API Changes

Changed Target Windows version back to 17763 / 1809
from 19031 / 2004

Behavioral Changes

works now again on Windows 17763 / 1809

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of develop at time of PR
  • Changes adhere to coding standard

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 942 in repo xamarin/XamarinCommunityToolkit

@jfversluis
Copy link
Member

Hm I would think we've set it to that target for a reason :D

@pictos
Copy link
Contributor

pictos commented Feb 22, 2021

@jfversluis if I'm not wrong was for popup control. Need to test this change to see if this doesn't break anything else

@jfversluis jfversluis added buildchain DO-NOT-MERGE Don't merge it.... don't do it! Really... labels Feb 22, 2021
@jfversluis
Copy link
Member

@ahoefling might know?

Let's not merge this until we know/properly test this

@inforithmics
Copy link
Contributor Author

Here the link around the discussion about this.

#653 (comment)

@SkyeHoefling
Copy link
Contributor

The UWP Flyout control added the ability to specify a transparent background in 19041. @inforithmics the discussion you linked explains this in my first comment #653 (comment). This change appears to be a workaround to our packaging problem.

The change provided here downgrades the lowest version supported and then applies the check for the feature a different way. I still believe the issue with UWP is packaging and not a code change like suggested here.

We should focus our efforts on getting this to work with windows build 19041.

@SkyeHoefling
Copy link
Contributor

I just added a comment on the original issue. This is not a packaging bug and can be solved by updating the min target version.

I think we can close both PR and issue as not a bug

#889 (comment)

@inforithmics
Copy link
Contributor Author

I agree that increasing the Min Version would solve the problem. But when you want to use the Xamarin Community Toolkit Popup on the oldest supported Windows Version you can't at moment.

https://en.wikipedia.org/wiki/Windows_10_version_history

Here you see all Windows 10 Supported Versions 1803 / 1809 are still supported until May 11 2021 (Enterprise Version)
And 1809 is still supported until January 9 2029 as a LTSC Version.

So that's why I retargeted it to Version 1809 as it was before.

With WinUI 3 this won't matter anymore, but unfortunatly the earlist that WinUI 3 on UWP will be supported is autumn of this year (not commited yet by WinUI 3).

I although created a new Xamarin.Forms UWP project and the default Minimum UWP Version was 16299 /1709 (The Minimum Version of Xamarin.Forms).

I like the Xamarin Community Toolkit Popup and would like to use it, but I can't at the moment because I'm only able to set the Minimum Supported Version to 17763/1809.

@inforithmics inforithmics changed the title Uwp Fixes Uwp retarget to 17763 / 1809 Mar 3, 2021
@inforithmics
Copy link
Contributor Author

They changed now the WinUI 3 roadmap WinUI 3 on UWP is now included as a Preview Feature in March 2021

https://github.com/microsoft/microsoft-ui-xaml/blob/master/docs/roadmap.md

But I don't know what happens when Xamarin Forms stays on UWP and Xamarin Community Toolkit uses WinUI 3 Toolkit

@YZahringer
Copy link
Contributor

I agree with @inforithmics, the UWP min version should be 1809, it is an LTSC version and we always support it in all our projects.

@bmacombe
Copy link
Contributor

@jfversluis @pictos I remember last summer talking about possibly needing to split the toolkit into more packages. While I'd like to avoid that, it might be something to consider if the min version can't be moved back past 2004. I think the Popup addition is great, but it's blocking me on XCT now because of the Win 10 min version in my user base. And I'm lucky that I only have users back to 1909. I know I could fork and roll my own, but that seems to defeat the purpose of the toolkit.

image

I'm not an expert at packaging and version detection, but what harm would this change do? If it would cause the popup to not work correctly and seem buggy or something on Win 10 < 2004 without the transparency setting, maybe it could just throw a not-supported exception or something similar.

@inforithmics
Copy link
Contributor Author

inforithmics commented Apr 15, 2021

If someone wants to test the changes the nuget package can be downloaded from this link:
https://dev.azure.com/xamarin/public/_build/results?buildId=38666&view=artifacts&pathAsName=false&type=publishedArtifacts

it is for the 667855b merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
buildchain DO-NOT-MERGE Don't merge it.... don't do it! Really...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants