Skip to content

Fix GetTargetPath hook point #42812

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

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Fix GetTargetPath hook point #42812

merged 1 commit into from
Aug 19, 2024

Conversation

ViktorHofer
Copy link
Member

Same as dotnet/runtime#106553

I noticed that in some environments, the existing hook point (AfterTargets=GetTargetPathWithTargetPlatformMoniker) doesn't run before GetTargetPath. That resulted in some project compiling against the src instead of the ref assembly.

DependsOnTargets + BeforeTargets="GetTargetPath" is is more correct anyway and works as exected.

Same as dotnet/runtime#106553

I noticed that in some environments, the existing hook point (AfterTargets=GetTargetPathWithTargetPlatformMoniker) doesn't run before GetTargetPath. That resulted in some project compiling against the src instead of the ref assembly.

DependsOnTargets + BeforeTargets="GetTargetPath" is is more correct anyway and works as exected.
@ViktorHofer ViktorHofer requested a review from a team as a code owner August 17, 2024 07:14
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-ApiCompat untriaged Request triage from a team member labels Aug 17, 2024
@ViktorHofer ViktorHofer enabled auto-merge (squash) August 19, 2024 08:08
@ViktorHofer ViktorHofer merged commit 22644c1 into main Aug 19, 2024
37 checks passed
@ViktorHofer ViktorHofer deleted the ViktorHofer-patch-2 branch August 19, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-ApiCompat untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants