Skip to content

Commit e73f9a2

Browse files
committed
Enable SourceLink and Determinism.
1 parent a8976e5 commit e73f9a2

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

Directory.Build.props

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<!-- NuGet packaging info -->
5+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
6+
<PackageProjectUrl>https://github.com/modern-forms/Modern.Forms</PackageProjectUrl>
7+
8+
<!-- SourceLink info -->
9+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
10+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
11+
12+
<!-- Include symbol files (*.pdb) in the built .nupkg -->
13+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
14+
</PropertyGroup>
15+
16+
<!-- Required for Deterministic -->
17+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
18+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
19+
</PropertyGroup>
20+
</Project>

src/Modern.Forms/Modern.Forms.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,15 @@
1212
<PropertyGroup>
1313
<PackageId>Modern.Forms</PackageId>
1414
<Version>0.3.0-rc1</Version>
15-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
16-
<PackageProjectUrl>https://github.com/modern-forms/Modern.Forms</PackageProjectUrl>
1715
<Description>Cross-platform spiritual successor to Winforms for .NET Core</Description>
1816
<PackageTags>Modern;Forms;Winforms;GUI;UI;Cross;Platform</PackageTags>
19-
<PackageOutputPath>../../nupkg</PackageOutputPath>
20-
21-
<!-- Include symbol files (*.pdb) in the built .nupkg -->
22-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
17+
<PackageOutputPath>../../nupkg</PackageOutputPath>
2318
</PropertyGroup>
2419

2520
<ItemGroup>
2621
<PackageReference Include="HarfBuzzSharp" Version="2.8.2.1" />
2722
<PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="2.8.2.1" />
23+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
2824
<PackageReference Include="Modern.WindowKit" Version="0.1.2-rc1" />
2925
<PackageReference Include="Topten.RichTextKit" Version="0.4.151" />
3026
</ItemGroup>

0 commit comments

Comments
 (0)