Skip to content

Commit

Permalink
Enable SourceLink and Determinism.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst committed Sep 21, 2022
1 parent a8976e5 commit e73f9a2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
20 changes: 20 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- NuGet packaging info -->
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/modern-forms/Modern.Forms</PackageProjectUrl>

<!-- SourceLink info -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Include symbol files (*.pdb) in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<!-- Required for Deterministic -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>
8 changes: 2 additions & 6 deletions src/Modern.Forms/Modern.Forms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,15 @@
<PropertyGroup>
<PackageId>Modern.Forms</PackageId>
<Version>0.3.0-rc1</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/modern-forms/Modern.Forms</PackageProjectUrl>
<Description>Cross-platform spiritual successor to Winforms for .NET Core</Description>
<PackageTags>Modern;Forms;Winforms;GUI;UI;Cross;Platform</PackageTags>
<PackageOutputPath>../../nupkg</PackageOutputPath>

<!-- Include symbol files (*.pdb) in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageOutputPath>../../nupkg</PackageOutputPath>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HarfBuzzSharp" Version="2.8.2.1" />
<PackageReference Include="HarfBuzzSharp.NativeAssets.Linux" Version="2.8.2.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
<PackageReference Include="Modern.WindowKit" Version="0.1.2-rc1" />
<PackageReference Include="Topten.RichTextKit" Version="0.4.151" />
</ItemGroup>
Expand Down

0 comments on commit e73f9a2

Please sign in to comment.