Skip to content

Commit

Permalink
Add source link and deterministic build
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed Sep 2, 2022
1 parent 6cfc922 commit 3a3ff1e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
27 changes: 27 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project>
<PropertyGroup Label="Package information">
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/IntelliTect/Multitool</PackageProjectUrl>
<RepositoryUrl>https://github.com/IntelliTect/Multitool</RepositoryUrl>
<Authors>IntelliTect</Authors>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion IntelliTect.Multitool.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32825.248
Expand All @@ -12,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
appveyor.yml = appveyor.yml
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
.github\workflows\deploy.yml = .github\workflows\deploy.yml
Directory.Build.props = Directory.Build.props
README.md = README.md
EndProjectSection
EndProject
Expand Down
7 changes: 0 additions & 7 deletions IntelliTect.Multitool/IntelliTect.Multitool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@
<TargetFramework>netstandard2.1</TargetFramework>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Company>IntelliTect-Nuget</Company>
<Authors>IntelliTect</Authors>
<Description>A utility library for IntelliTect</Description>
<Copyright>Copyright © IntelliTect 2019</Copyright>
<PackageProjectUrl>https://github.com/IntelliTect/Multitool</PackageProjectUrl>
<RepositoryUrl>https://github.com/IntelliTect/Multitool</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>IntelliTect, Utilities, Multitool</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Deterministic>true</Deterministic>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<NeutralLanguage>en</NeutralLanguage>
Expand Down

0 comments on commit 3a3ff1e

Please sign in to comment.