Skip to content

Commit 36c6f72

Browse files
committed
Exclude PDB from release build and use deterministic paths
1 parent 10f73e6 commit 36c6f72

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@
66
<AssemblyProduct>Python.NET</AssemblyProduct>
77
<LangVersion>12.0</LangVersion>
88
<IsPackable>false</IsPackable>
9+
<DeterministicSourcePaths>true</DeterministicSourcePaths>
910
<FullVersion>$([System.IO.File]::ReadAllText("$(MSBuildThisFileDirectory)version.txt").Trim())</FullVersion>
1011
<VersionPrefix>$(FullVersion.Split('-', 2)[0])</VersionPrefix>
1112
<VersionSuffix Condition="$(FullVersion.Contains('-'))">$(FullVersion.Split('-', 2)[1])</VersionSuffix>
1213
<RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot>
1314
</PropertyGroup>
15+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
16+
<DebugSymbols>False</DebugSymbols>
17+
<DebugType>None</DebugType>
18+
</PropertyGroup>
1419
<ItemGroup>
1520
<PackageReference Include="Microsoft.CSharp" Version="4.*" />
1621
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="5.*">

0 commit comments

Comments
 (0)