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

Check TargetPlatformIdentifier for UAP #12611

Merged
merged 2 commits into from
Oct 27, 2020
Merged

Check TargetPlatformIdentifier for UAP #12611

merged 2 commits into from
Oct 27, 2020

Conversation

PureWeen
Copy link
Contributor

@PureWeen PureWeen commented Oct 26, 2020

Description of Change

VS 16.8 now sets TargetPlatformMinVersion to 7.0 on the shared project which is causing the UWP specific target to run and give a bogus warning message

image

This PR checks that the TargetPlatformIdentifier matches UAP so it only runs for UAP projects

This PR also updates the Target and Min Target to match WinUI 2.4 suggestions

Issues Resolved

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1237998

Platforms Affected

  • UWP

Testing Procedure

  • create a new Xamarin.Forms project with UWP
  • add this nuget
  • make sure the warning doesn't show up for the shared project. Set the UWP project min version to < 17763 and make sure you still get the warning

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@PureWeen PureWeen added the blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. label Oct 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants