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

Fix GetTargetPath hook point #106553

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Fix GetTargetPath hook point #106553

merged 1 commit into from
Aug 19, 2024

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Aug 16, 2024

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.

I noticed that in some environments, the existing hook point (AfterTargets=GetTargetPathWithTargetPlatformMoniker) doesn't work. 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.
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

ViktorHofer added a commit to dotnet/sdk that referenced this pull request Aug 17, 2024
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 merged commit 0fca85f into main Aug 19, 2024
147 of 149 checks passed
@ViktorHofer ViktorHofer deleted the FixGetTargetPathHook branch August 19, 2024 08:08
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants