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 MSBuild-evaluated property values for TFM #9417

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Apr 2, 2024

Previously we'd manually parse each build file's XML and extract the TargetFramework, etc. properties. This could lead to thinking a project supported a TFM when it really didn't. The solution is to use the MSBuild-evaluated value as the project file is loaded.

@brettfo brettfo requested a review from a team as a code owner April 2, 2024 17:44
@brettfo brettfo force-pushed the dev/brettfo/msbuild-eval-tfm branch from 47b5de8 to 6b9bf8e Compare April 2, 2024 17:48
@brettfo brettfo added the L: dotnet:nuget NuGet packages via nuget or dotnet label Apr 2, 2024
@brettfo brettfo force-pushed the dev/brettfo/msbuild-eval-tfm branch 2 times, most recently from 57dd2cc to 056716c Compare April 2, 2024 22:09
@martincostello
Copy link
Contributor

Is this change likely to resolve #8578 (comment)?

@JoeRobich
Copy link
Contributor

Is this change likely to resolve #8578 (comment)?

No, this change will help ensure we get the proper set of TFMs for a project but will not help cases where PackageReferences are conditionally included.

@JoeRobich JoeRobich force-pushed the dev/brettfo/msbuild-eval-tfm branch 2 times, most recently from 750f524 to 646740a Compare April 4, 2024 21:24
@brettfo brettfo force-pushed the dev/brettfo/msbuild-eval-tfm branch 4 times, most recently from 48e94ac to dd968e9 Compare April 11, 2024 20:19
@brettfo brettfo force-pushed the dev/brettfo/msbuild-eval-tfm branch 4 times, most recently from 08d2d5b to 012d992 Compare April 12, 2024 17:47
Release notes: https://github.com/dependabot/dependabot-core/releases/tag/v0.252.0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@brettfo brettfo force-pushed the dev/brettfo/msbuild-eval-tfm branch from 012d992 to 4a5af05 Compare April 12, 2024 18:16
@jakecoffman jakecoffman merged commit 1842419 into main Apr 12, 2024
86 checks passed
@jakecoffman jakecoffman deleted the dev/brettfo/msbuild-eval-tfm branch April 12, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants