Skip to content
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

Use <WindowsSdkPackageVersion> to set the SDK version #3085

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

mattleibow
Copy link
Contributor

@mattleibow mattleibow commented Nov 27, 2024

Description of Change

I think the SDK and/or VS updates have brought in some issue, but I think there is another way to do what we want.

We currently have this:

<FrameworkReference
    Update="Microsoft.Windows.SDK.NET.Ref"
    RuntimeFrameworkVersion="10.0.19041.27"
    TargetingPackVersion="10.0.19041.27" />

But that is assuming the framework references are added early and we run late. But, it appears something changed and now the values are either ignored or the items are added in a different place. This results in our adjustments being ignored.

There is another property <WindowsSdkPackageVersion> that can be used and feels more official.

I think in net6 something broke with the property so we had to do it via the framework references, but now it appears they fixed it and broke us.

@mattleibow mattleibow changed the title Fix the build Use <WindowsSdkPackageVersion> as well Nov 27, 2024
@mattleibow mattleibow changed the title Use <WindowsSdkPackageVersion> as well Use <WindowsSdkPackageVersion> to set the SDK version Nov 27, 2024
@mattleibow mattleibow merged commit aa42586 into main Nov 27, 2024
1 of 2 checks passed
@mattleibow mattleibow deleted the dev/fix-ci branch November 27, 2024 22:48
github-actions bot pushed a commit that referenced this pull request Nov 27, 2024
mattleibow added a commit that referenced this pull request Nov 27, 2024
(cherry picked from commit aa42586)

Co-authored-by: Matthew Leibowitz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant