Embed untracked sources in all non-WPF projects#51353
Embed untracked sources in all non-WPF projects#51353RikkiGibson merged 2 commits intodotnet:masterfrom
Conversation
|
Can we set the value in a single place conditionally on |
|
I did attempt to use the following properties in <EmbedUntrackedSources Condition="$(UseWpf) == 'true'">false</EmbedUntrackedSources>
<EmbedUntrackedSources Condition="$(EmbedUntrackedSources) == ''">true</EmbedUntrackedSources>I got about 18 build errors similar to this: Because of this I just fell back to specifying the property in all the WPF projects. |
|
|
|
d'oy, thanks for the msbuild refresher. |
| When markup compilation is involved, WPF generates .g.cs files via the GenerateTemporaryTargetAssembly task. | ||
| These do not always have the correct full-paths to their respective .xaml files annotated in them in the #line directives. | ||
| This can cause compile errors if these files are included in Source Link. | ||
| https://github.com/dotnet/wpf/issues/1718 |
There was a problem hiding this comment.
Believe this should be removed when we migrate to Arcade 6. How should we track removing this when that happens?
There was a problem hiding this comment.
I'm not sure why updating Arcade is related to this. It seems like a matter of fixing a WPF bug? Am I misunderstanding?
There was a problem hiding this comment.
It's because Arcade 6 has <EmbedUntrackedSources> set to true by default as well as has a work around for WPF Projects. Hence once we move to Arcade 6 this work around will be redundant with theirs
There was a problem hiding this comment.
I'll just leave the linked issue open and update the description to remind us to remove this workaround.
Related to #51099
/cc @jaredpar @tmat
This is necessary for us to be able to eventually rebuild all non-WPF projects in Roslyn.