Skip to content

Commit 1c9aa36

Browse files
Revert "Improve build reliability by removing conversion to Windows PDB (#11548)"
This reverts commit d51413c.
1 parent 075a5c9 commit 1c9aa36

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

Directory.Build.props

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
2929
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
3030

31-
<!-- VS does not require Windows PDBs to be published anymore. -->
32-
<PublishWindowsPdb>false</PublishWindowsPdb>
33-
3431
<SharedSourceRoot>$(MSBuildThisFileDirectory)src\Shared\</SharedSourceRoot>
3532
<SharedFilesRoot>$(SharedSourceRoot)files\</SharedFilesRoot>
3633

src/Analyzers/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<IncludeSymbols>true</IncludeSymbols>
99
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1010

11+
<!-- In theory we want to have this property set, but our pipeline doesn't set the access tokens yet -->
12+
<PublishWindowsPdb Condition="'$(DotNetSymbolServerTokenMsdl)'!='' and '$(DotNetSymbolServerTokenSymWeb)'!=''">true</PublishWindowsPdb>
13+
1114
<RollForward Condition="'$(IsTestProject)' == 'true'">LatestMajor</RollForward>
1215
</PropertyGroup>
1316

src/Razor/src/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<IncludeSymbols>true</IncludeSymbols>
99
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1010

11+
<!-- In theory we want to have this property set, but our pipeline doesn't set the access tokens yet -->
12+
<PublishWindowsPdb Condition="'$(DotNetSymbolServerTokenMsdl)'!='' and '$(DotNetSymbolServerTokenSymWeb)'!=''">true</PublishWindowsPdb>
1113
</PropertyGroup>
1214

1315
</Project>

src/Shared/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<IncludeSymbols>true</IncludeSymbols>
99
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1010

11+
<!-- In theory we want to have this property set, but our pipeline doesn't set the access tokens yet -->
12+
<PublishWindowsPdb Condition="'$(DotNetSymbolServerTokenMsdl)'!='' and '$(DotNetSymbolServerTokenSymWeb)'!=''">true</PublishWindowsPdb>
13+
1114
<RollForward Condition="'$(IsTestProject)' == 'true'">LatestMajor</RollForward>
1215
</PropertyGroup>
1316

0 commit comments

Comments
 (0)