Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f519454

Browse files
authored
Produce Windows PDBs when building for netfx and in a Windows OS (#28562)
* Produce Windows PDBs when building for netfx and in a Windows OS * Use TargetGroup and RunningOnUnix instead
1 parent a4c601d commit f519454

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dir.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@
174174
<!-- Set the kind of PDB to Portable and turn on SourceLink (fetching source from GitHub) -->
175175
<PropertyGroup>
176176
<DebugType Condition="'$(DebugType)' == ''">Portable</DebugType>
177+
<!-- Empty DebugType when building for netfx and in windows so that it is set to full or pdbonly later -->
178+
<DebugType Condition="'$(TargetsNetFx)' == 'true' AND '$(RunningOnUnix)' != 'true'"></DebugType>
177179
<UseSourceLink>true</UseSourceLink>
178180
</PropertyGroup>
179181

0 commit comments

Comments
 (0)