Skip to content

Commit df9234b

Browse files
authored
Improves the debugging experience for package consumers (#404)
Adds the following features to the packages: * SourceLink * Embedded Debug Symbols * Deterministic builds
1 parent 1d7e537 commit df9234b

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

src/libplctag.NativeImport/libplctag.NativeImport.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,18 @@
3333
<None Include="..\..\docs\libplctag.NativeImport.md" Pack="true" PackagePath="\README.md"/>
3434
</ItemGroup>
3535

36+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
37+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
38+
</PropertyGroup>
39+
40+
<PropertyGroup>
41+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
42+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
43+
<DebugType>embedded</DebugType>
44+
</PropertyGroup>
45+
46+
<ItemGroup>
47+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
48+
</ItemGroup>
49+
3650
</Project>

src/libplctag/libplctag.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,18 @@
2727
<None Include="..\..\docs\libplctag.md" Pack="true" PackagePath="\README.md"/>
2828
</ItemGroup>
2929

30+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
31+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
32+
</PropertyGroup>
33+
34+
<PropertyGroup>
35+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
36+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
37+
<DebugType>embedded</DebugType>
38+
</PropertyGroup>
39+
40+
<ItemGroup>
41+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
42+
</ItemGroup>
43+
3044
</Project>

0 commit comments

Comments
 (0)