-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
cc:// @dotnet/dotnet-wpf-triage |
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. |
/backport to main |
Started backporting to main: https://github.com/dotnet/wpf/actions/runs/6801962726 |
This won't fix it for people who use desktop WPF, right? |
@KirillOsenkov Right. |
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 orEmbedUntrackedSources
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