You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- WPF causes an error with SourceLink because its build targets create a temporary project without a PackageReference to SourceLink, see https://github.com/dotnet/sourcelink/issues/91,
<!-- WPF causes an error with SourceLink because its build targets create a temporary project without a PackageReference to SourceLink, see https://github.com/dotnet/sourcelink/issues/91,
4
4
causing the @SourceRoot property to be unexpectedly empty for the MapSourceRoot task
5
5
6
6
For context, see https://github.com/dotnet/roslyn/blob/main/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets
7
7
and https://github.com/dotnet/roslyn/blob/main/src/Compilers/Core/MSBuildTask/MapSourceRoots.cs
8
8
9
9
This workaround sets the SourceRoot manually to some deterministic value to keep the promise given by having DeterministicSourcePaths set to true -->
10
-
<MessageText="using deterministic source path workaround for WPF project instead of SourceLink" />
11
-
<ItemGroup>
12
-
<!-- There needs to be at least one SourceRoot defined, its value does not seem to matter as long as it ends with a directory separator -->
13
-
<SourceRootInclude="\" />
14
-
</ItemGroup>
15
-
</Target>
16
-
</Project>
10
+
<MessageText="using deterministic source path workaround for WPF project instead of SourceLink" />
11
+
<ItemGroup>
12
+
<!-- There needs to be at least one SourceRoot defined, its value does not seem to matter as long as it ends with a directory separator -->
0 commit comments