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 build error sourcelink EmbedUntrackedSources #8378

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

singhashish-wpf
Copy link
Member

@singhashish-wpf singhashish-wpf commented Oct 31, 2023

Fixes #
dotnet/sdk#34438

Description

Due to SourceLink enabled by default in .NET8, Files related to markup compilation are being embedded with wrong paths.
Turning off EmbedUntrackedSources for GenerateTemporaryTargetAssembly.cs.

Customer Impact

Build fails if the project has IncludePackageReferencesDuringMarkupCompilation set to false.
Customer can set IncludePackageReferencesDuringMarkupCompilation to true or EmbedUntrackedSources as false in csproj as a workaround .

Regression

Yes. Started happening in .NET8 Preview 6. Doesn't repro in .net 7

Testing

Local WPF Testing, DRTs and microsuites
Current Test infra of wpf doesn't checks for this case.

Risk

Low. Adding the global property EmbedUntrackedSources during MarkupCompilation phase. [Still Evaluating]

Microsoft Reviewers: Open in CodeFlow

@singhashish-wpf singhashish-wpf requested a review from a team as a code owner October 31, 2023 15:32
@ghost ghost assigned singhashish-wpf Oct 31, 2023
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Oct 31, 2023
@ghost ghost requested a review from dipeshmsft October 31, 2023 15:33
@singhashish-wpf
Copy link
Member Author

@singhashish-wpf
Copy link
Member Author

cc:// @dotnet/dotnet-wpf-triage

@ghost
Copy link

ghost commented Oct 31, 2023

Hi @singhashish-wpf. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.

@dsplaisted dsplaisted requested a review from tmat November 1, 2023 19:22
@singhashish-wpf
Copy link
Member Author

/backport to main

Copy link

github-actions bot commented Nov 8, 2023

Started backporting to main: https://github.com/dotnet/wpf/actions/runs/6801962726

@KirillOsenkov
Copy link
Member

This won't fix it for people who use desktop WPF, right?

@singhashish-wpf
Copy link
Member Author

@KirillOsenkov Right.

@leecow leecow added this to the 8.0.1 milestone Nov 21, 2023
@Kuldeep-MS Kuldeep-MS merged commit c1156ae into release/8.0 Nov 22, 2023
@Kuldeep-MS Kuldeep-MS deleted the fixBuildErrorSourceLink branch November 22, 2023 14:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage Servicing-approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants