Skip to content

Commit 82998c0

Browse files
authored
Merge pull request #12 from TurnerSoftware/deterministic-builds
Updates to NuGet packaging
2 parents f6ea996 + 7b57eeb commit 82998c0

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

.appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ install:
1717
build_script:
1818
- ps: dotnet --version
1919
- ps: dotnet restore
20-
- ps: dotnet build --no-restore -c Release
20+
- ps: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
2121
- ps: dotnet test --no-restore /p:SkipBuildVersioning=true
22-
- ps: dotnet pack --no-build -c Release /p:PackageOutputPath=$env:BUILD_ARTIFACT_PATH
22+
- ps: dotnet pack --no-build -c Release /p:PackageOutputPath=$env:BUILD_ARTIFACT_PATH /p:ContinuousIntegrationBuild=true
2323

2424
test: false
2525
artifacts:

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
- name: Install dependencies
3535
run: dotnet restore
3636
- name: Build
37-
run: dotnet build --no-restore -c Release
37+
run: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
3838
- name: Test with Coverage
3939
run: dotnet test --no-restore --logger trx --results-directory ${{env.BUILD_ARTIFACT_PATH}}/coverage --collect "XPlat Code Coverage" --settings CodeCoverage.runsettings /p:SkipBuildVersioning=true
4040
- name: Pack
41-
run: dotnet pack --no-build -c Release /p:PackageOutputPath=${{env.BUILD_ARTIFACT_PATH}}
41+
run: dotnet pack --no-build -c Release /p:PackageOutputPath=${{env.BUILD_ARTIFACT_PATH}} /p:ContinuousIntegrationBuild=true
4242
- name: Publish artifacts
4343
uses: actions/upload-artifact@v2
4444
with:

azure-pipelines.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
vmImage: ubuntu-latest
88

99
variables:
10-
BUILD_CONFIGURATION: Release
1110
BUILD_ARTIFACT_PATH: $(Build.ArtifactStagingDirectory)
1211

1312
steps:
@@ -17,13 +16,13 @@ jobs:
1716
- script: dotnet restore
1817
displayName: Install dependencies
1918

20-
- script: dotnet build --no-restore -c $(BUILD_CONFIGURATION)
19+
- script: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
2120
displayName: Build
2221

2322
- script: dotnet test --no-restore /p:SkipBuildVersioning=true
2423
displayName: Test
2524

26-
- script: dotnet pack --no-build -c $(BUILD_CONFIGURATION) /p:PackageOutputPath=$(BUILD_ARTIFACT_PATH)
25+
- script: dotnet pack --no-build -c Release /p:PackageOutputPath=$(BUILD_ARTIFACT_PATH) /p:ContinuousIntegrationBuild=true
2726
displayName: Pack
2827

2928
- task: PublishBuildArtifacts@1

src/Directory.Build.props

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@
77

88
<PackageId>$(AssemblyName)</PackageId>
99
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
10-
<PackageLicenseFile>License.txt</PackageLicenseFile>
10+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1111
<PackageProjectUrl>https://github.com/TurnerSoftware/BuildVersioning</PackageProjectUrl>
1212
<PackageBaseTags>semver;semantic;versioning;git</PackageBaseTags>
13-
14-
<RepositoryUrl>https://github.com/TurnerSoftware/BuildVersioning.git</RepositoryUrl>
15-
<RepositoryType>git</RepositoryType>
16-
<RepositoryBranch>main</RepositoryBranch>
1713

1814
<!-- SourceLink Support -->
1915
<PublishRepositoryUrl>true</PublishRepositoryUrl>
@@ -23,12 +19,9 @@
2319

2420
<LangVersion>Latest</LangVersion>
2521
</PropertyGroup>
22+
2623
<ItemGroup>
2724
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
2825
</ItemGroup>
29-
30-
<ItemGroup>
31-
<None Include="..\..\License.txt" Pack="true" PackagePath="$(PackageLicenseFile)"/>
32-
</ItemGroup>
3326

3427
</Project>

0 commit comments

Comments
 (0)