Skip to content

Fix build error sourcelink EmbedUntrackedSources - #8378

Merged
Kuldeep-MS merged 1 commit into
release/8.0from
fixBuildErrorSourceLink
Nov 22, 2023
Merged

Kuldeep-MS merged 1 commit into
release/8.0from
fixBuildErrorSourceLink

Conversation

@singhashish-wpf

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

@singhashish-wpf

Copy link
Copy Markdown
Contributor Author

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

@ghost

ghost commented Oct 31, 2023

Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

/backport to main

@github-actions

github-actions Bot commented Nov 8, 2023

Copy link
Copy Markdown

@KirillOsenkov

Copy link
Copy Markdown
Member

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

@singhashish-wpf

Copy link
Copy Markdown
Contributor 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