Skip to content

Commit 3a3ff1e

Browse files
Add source link and deterministic build
1 parent 6cfc922 commit 3a3ff1e

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

Directory.Build.props

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project>
2+
<PropertyGroup Label="Package information">
3+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
4+
<PackageProjectUrl>https://github.com/IntelliTect/Multitool</PackageProjectUrl>
5+
<RepositoryUrl>https://github.com/IntelliTect/Multitool</RepositoryUrl>
6+
<Authors>IntelliTect</Authors>
7+
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
8+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
9+
10+
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
11+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
12+
13+
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
14+
<IncludeSymbols>true</IncludeSymbols>
15+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
16+
</PropertyGroup>
17+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
18+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
19+
</PropertyGroup>
20+
<ItemGroup>
21+
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
22+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
23+
<PrivateAssets>all</PrivateAssets>
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
25+
</PackageReference>
26+
</ItemGroup>
27+
</Project>

IntelliTect.Multitool.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio Version 17
43
VisualStudioVersion = 17.3.32825.248
@@ -12,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1211
appveyor.yml = appveyor.yml
1312
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
1413
.github\workflows\deploy.yml = .github\workflows\deploy.yml
14+
Directory.Build.props = Directory.Build.props
1515
README.md = README.md
1616
EndProjectSection
1717
EndProject

IntelliTect.Multitool/IntelliTect.Multitool.csproj

-7
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@
33
<TargetFramework>netstandard2.1</TargetFramework>
44
<OutputType>Library</OutputType>
55
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6-
<IncludeSymbols>true</IncludeSymbols>
7-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
86
<GenerateDocumentationFile>true</GenerateDocumentationFile>
97
<Company>IntelliTect-Nuget</Company>
10-
<Authors>IntelliTect</Authors>
118
<Description>A utility library for IntelliTect</Description>
129
<Copyright>Copyright © IntelliTect 2019</Copyright>
13-
<PackageProjectUrl>https://github.com/IntelliTect/Multitool</PackageProjectUrl>
14-
<RepositoryUrl>https://github.com/IntelliTect/Multitool</RepositoryUrl>
1510
<RepositoryType>Git</RepositoryType>
1611
<PackageTags>IntelliTect, Utilities, Multitool</PackageTags>
17-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1812
<RepositoryType>git</RepositoryType>
19-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2013
<Deterministic>true</Deterministic>
2114
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2215
<NeutralLanguage>en</NeutralLanguage>

0 commit comments

Comments
 (0)