Skip to content

Commit 5134914

Browse files
committed
Workaround for PDB conversion issues
1 parent 5f37b37 commit 5134914

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33

44
<Import Project="eng\imports\StrongName.targets" />
5-
<Import Project="eng\imports\SymStore.targets" Condition="'$(CIBuild)' == 'true'"/>
5+
<Import Project="eng\imports\SymStore.targets" Condition="'$(CIBuild)' == 'true' and '$(PublishWindowsPdb)' != 'false'"/>
66
<!-- VSSDK is needed in projects generating VSIX packages or pkgdef files. -->
77
<!-- Manually importing the .targets here allows SDK-style VS Extension projects to build properly. -->
88
<!-- See: https://github.com/dotnet/msbuild/issues/2393#issuecomment-1126563335 -->

src/Microsoft.AspNetCore.Watch.BrowserRefresh/Microsoft.AspNetCore.Watch.BrowserRefresh.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
When updating the TFM also update minimal supported version in VisualStudioBrowserRefreshServer.
66
-->
77
<TargetFramework>net6.0</TargetFramework>
8+
9+
<!-- Workaround issues with Pdb2Pdb conversion: the assembly does not load to any VS process -->
10+
<DebugType>embedded</DebugType>
11+
<PublishWindowsPdb>false</PublishWindowsPdb>
812
</PropertyGroup>
913

1014
<ItemGroup>

src/Microsoft.Extensions.DotNetDeltaApplier/Microsoft.Extensions.DotNetDeltaApplier.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
<!-- Suppress warning: Microsoft.Bcl.AsyncInterfaces 9.0.0 doesn't support net6.0 and has not been tested with it. -->
1111
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
12+
13+
<!-- Workaround issues with Pdb2Pdb conversion: the assembly does not load to any VS process -->
14+
<DebugType>embedded</DebugType>
15+
<PublishWindowsPdb>false</PublishWindowsPdb>
1216
</PropertyGroup>
1317

1418
<ItemGroup>

0 commit comments

Comments
 (0)