Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tmat
Copy link
Member

@tmat tmat commented Jun 15, 2023

IsCrossTargetingBuild is only defined in .targets, not in .props.

Only Microsoft.SourceLink.Common.targets needs to be imported in cross-targeting build as it contains workaround for dotnet/msbuild#3294. Once this issue is fixed we can remove cross-targeting specialization entirely.

Related: dotnet/msbuild#8898
Fixes #33297

@tmat
Copy link
Member Author

tmat commented Jun 15, 2023

@dsplaisted PTAL

@ViktorHofer
Copy link
Member

Can you please add a test that protects the behavior for multi-targeting and non multi-targeting projects?

@tmat
Copy link
Member Author

tmat commented Jun 15, 2023

@ViktorHofer Will do that as a follow-up: #33297

Copy link
Member

@dsplaisted dsplaisted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good I think. Is there a reason not to add the tests with this PR as opposed to later? It seems like that would give more confidence.

@tmat
Copy link
Member Author

tmat commented Jun 16, 2023

Is there a reason not to add the tests with this PR as opposed to later? It seems like that would give more confidence.

To unblock Arcade updates ASAP. I might be able to add the test today though.

@ViktorHofer
Copy link
Member

ViktorHofer commented Jun 16, 2023

Arcade is blocked anyway for about a month until the next (signed) preview that contains this fix releases. We meanwhile reverted the PackageReference change in Arcade.

@dsplaisted
Copy link
Member

OK, go ahead and merge if you'd like.

@tmat
Copy link
Member Author

tmat commented Jun 19, 2023

Added a test - figured I can reuse the existing one, just add packaging validation.

@tmat tmat enabled auto-merge (squash) June 20, 2023 16:08
@tmat tmat merged commit 540b197 into dotnet:main Jun 20, 2023
@tmat tmat deleted the XTargeting branch June 21, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests validating bundled Source Link
3 participants