Skip to content

Conversation

@sfoslund
Copy link
Member

@sfoslund sfoslund commented Aug 31, 2020

Fixes #13266

@dsplaisted
Copy link
Member

This should fix #13266

@sfoslund Can you make sure it covers all those cases, including parsing Windows as the TargetPlatformIdentifier from the TargetFramework even if TargetPlatformVersion is explicitly specified.

Also, as @wli3 mentioned, the logic to match to the KnownFrameworkReference may need to be updated to match with the right version for Microsoft.Windows.SDK.NET.Ref.

@wli3
Copy link

wli3 commented Aug 31, 2020

@sfoslund I think

public void When_TargetPlatformVersion_is_set_higher_than_10_It_can_reference_cswinrt_api()
will fail. Could you runt that locally and check? Or you need to wait for extra 3 hours for tests

@wli3
Copy link

wli3 commented Aug 31, 2020

@sfoslund
Copy link
Member Author

@wli3 it actually seems to be passing locally

@wli3
Copy link

wli3 commented Aug 31, 2020

hmm.... it might fail on stage 0 update. Anyway, that's better

@wli3
Copy link

wli3 commented Aug 31, 2020

tests failed

@sfoslund sfoslund force-pushed the windowsVersionNums branch from f28b6e5 to 82569d2 Compare August 31, 2020 22:04
[InlineData(new[] { "1.0", "1.1" }, "ios", "1.1", new[] { "IOS", "IOS1_1", "IOS1_0" })]
[InlineData(new[] { "11.11", "12.12", "13.13" }, "android", "12.12", new[] { "ANDROID", "ANDROID11_11", "ANDROID12_12" })]
[InlineData(new string[] { /* Use the built in SdkSupportedTargetPlatform items */}, "windows", "10.0.19041", new[] { "WINDOWS", "WINDOWS7_0", "WINDOWS8_0", "WINDOWS10_0_17763", "WINDOWS10_0_18362", "WINDOWS10_0_19041" })]
[InlineData(new string[] { /* Use the built in SdkSupportedTargetPlatform items */}, "windows", "10.0.19041.0", new[] { "WINDOWS", "WINDOWS7_0", "WINDOWS8_0", "WINDOWS10_0_17763_0", "WINDOWS10_0_18362_0", "WINDOWS10_0_19041_0" })]
Copy link
Member

Choose a reason for hiding this comment

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

Ugh. This is a side effect I didn't consider. I think we probably want these to be based on the 3 part version if the 4th part is 0.

@terrajobst thoughts?

Copy link

Choose a reason for hiding this comment

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

Once we decide on 4 parts, everything should be 4 parts.

@sfoslund sfoslund added auto-merge Automatically merge PR once CI passes. Auto-Merge If Tests Pass labels Sep 1, 2020
@ghost
Copy link

ghost commented Sep 1, 2020

Hello @sfoslund!

Because this pull request has the Auto-Merge If Tests Pass label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 4a120da into dotnet:release/5.0.1xx Sep 1, 2020
@sfoslund sfoslund deleted the windowsVersionNums branch September 1, 2020 18:04
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Merge If Tests Pass auto-merge Automatically merge PR once CI passes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants