Skip to content

Commit

Permalink
Merge pull request #3 from atc-net/hotfix/nuget_package2
Browse files Browse the repository at this point in the history
Ensure Nerdbank is setup in src/directory.build.props
  • Loading branch information
perkops authored Apr 23, 2024
2 parents 41b923f + 2fd3756 commit 237c918
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@
-->
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.props))\Directory.Build.props" />

<!-- Global nuget package configurations that should not be needed to change -->
<PropertyGroup Label="Global Nuget Package metadata">
<RepositoryUrl>https://github.com/$(OrganizationName)/$(RepositoryName)</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/$(OrganizationName)/$(RepositoryName)</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\images\icon.png" Pack="true" PackagePath="\" Visible="false" />
</ItemGroup>

<PropertyGroup Label="Build instructions">
<OutputType>Library</OutputType>
<!-- Creates a regular package and a symbols package -->
Expand All @@ -19,5 +33,28 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Recommended: Embed symbols containing Source Link in the main file (exe/dll) -->
<DebugType>embedded</DebugType>
<!-- Will generate nuget packages for each project -->
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<!-- Web projects aren't packable by default. To override the default behavior, add the following -->
<IsPackable>true</IsPackable>
</PropertyGroup>
</Project>

<!--
By default builds are non-deterministic, meaning there is no guarantee that building the same code twice(on the same or different machines)
will produce exactly the same binary output. Deterministic builds are important as they enable verification that the resulting
binary was built from the specified source and provides traceability.
To enable deterministic builds a property should be set to through: ContinuousIntegrationBuild.
Important: This property should not be enabled during local development as the debugger won't be able to find the local source files.
-->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="All" />
</ItemGroup>

</Project>

0 comments on commit 237c918

Please sign in to comment.