Skip to content

Commit aac5553

Browse files
Fix snupkg compatibility
1 parent cbadf4f commit aac5553

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Src/DSInternals.Replication/DSInternals.Replication.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@
9696
<BuildOutputInPackage Include="%(AnyCpuFiles.Identity)" TargetPath="/runtimes/win-x86/lib/$(TargetFrameworkAndPlatform)/%(AnyCpuFiles.Filename)%(AnyCpuFiles.Extension)" />
9797
<BuildOutputInPackage Include="%(AnyCpuFiles.Identity)" TargetPath="/runtimes/win-arm64/lib/$(TargetFrameworkAndPlatform)/%(AnyCpuFiles.Filename)%(AnyCpuFiles.Extension)" />
9898

99-
<!-- Pack platform-specific DSInternals.Replication.Interop DLL+PDB+XML -->
100-
<X64Files Include="$(ReplicationInteropOutDir)x64\DSInternals.Replication.Interop.???" />
101-
<X86Files Include="$(ReplicationInteropOutDir)Win32\DSInternals.Replication.Interop.???" />
102-
<ARM64Files Include="$(ReplicationInteropOutDir)ARM64\DSInternals.Replication.Interop.???" />
99+
<!-- Pack platform-specific DSInternals.Replication.Interop DLL+XML, but skip PDB files. -->
100+
<!-- Visual C++ compiler only produces Windows PDB files, while the NuGet Gallery is only compatible with portable PDBs. -->
101+
<X64Files Include="$(ReplicationInteropOutDir)x64\DSInternals.Replication.Interop.??l" />
102+
<X86Files Include="$(ReplicationInteropOutDir)Win32\DSInternals.Replication.Interop.??l" />
103+
<ARM64Files Include="$(ReplicationInteropOutDir)ARM64\DSInternals.Replication.Interop.??l" />
103104
<BuildOutputInPackage Include="%(X64Files.Identity)" TargetPath="/runtimes/win-x64/lib/$(TargetFrameworkAndPlatform)/%(X64Files.Filename)%(X64Files.Extension)" />
104105
<BuildOutputInPackage Include="%(X86Files.Identity)" TargetPath="/runtimes/win-x86/lib/$(TargetFrameworkAndPlatform)/%(X86Files.Filename)%(X86Files.Extension)" />
105106
<BuildOutputInPackage Include="%(ARM64Files.Identity)" TargetPath="/runtimes/win-arm64/lib/$(TargetFrameworkAndPlatform)/%(ARM64Files.Filename)%(ARM64Files.Extension)" />

0 commit comments

Comments
 (0)