Skip to content

Fix GetTargetPath hook point#106553

Merged
ViktorHofer merged 1 commit intomainfrom
FixGetTargetPathHook
Aug 19, 2024
Merged

Fix GetTargetPath hook point#106553
ViktorHofer merged 1 commit intomainfrom
FixGetTargetPathHook

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.
@dotnet-policy-service
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
@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