Skip to content

Commit c7b5a89

Browse files
committed
Packaging updates
1 parent ae162dc commit c7b5a89

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ jobs:
2424
- name: Restore
2525
run: dotnet restore BlockingCollectionExtensions.sln
2626

27-
- name: Build
28-
run: dotnet build BlockingCollectionExtensions.sln --configuration Release --no-restore
27+
- name: Build net8.0
28+
run: dotnet build BlockingCollectionExtensions/BlockingCollectionExtensions.csproj --configuration Release --framework net8.0 --no-restore
29+
30+
- name: Build netstandard2.1
31+
run: dotnet build BlockingCollectionExtensions/BlockingCollectionExtensions.csproj --configuration Release --framework netstandard2.1 --no-restore
2932

3033
- name: Test
3134
run: dotnet test BlockingCollectionExtensions.sln --configuration Release --no-build
3235

3336
- name: Pack
34-
run: dotnet pack BlockingCollectionExtensions/BlockingCollectionExtensions.csproj --configuration Release --no-build -o artifacts
37+
run: dotnet pack BlockingCollectionExtensions/BlockingCollectionExtensions.csproj --configuration Release --no-build -p:EnablePackageValidation=true -o artifacts

BlockingCollectionExtensions/BlockingCollectionExtensions.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
<IncludeSymbols>true</IncludeSymbols>
1919
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2020
<PublishRepositoryUrl>true</PublishRepositoryUrl>
21-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
21+
<EmbedUntrackedSources>false</EmbedUntrackedSources>
2222
<PackageReleaseNotes>Modernized packaging, improved APIs, async enumerable support, and updated CI/test coverage.</PackageReleaseNotes>
23-
<DebugType>embedded</DebugType>
24-
<EnablePackageValidation>true</EnablePackageValidation>
23+
<DebugType>portable</DebugType>
24+
<EnablePackageValidation Condition="'$(CI)' == 'true'">true</EnablePackageValidation>
25+
<EnablePackageValidation Condition="'$(CI)' != 'true'">false</EnablePackageValidation>
2526
<PackageValidationBaselineVersion>6.0.1</PackageValidationBaselineVersion>
2627
</PropertyGroup>
2728

global.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.402",
4+
"rollForward": "latestPatch",
5+
"allowPrerelease": false
6+
}
7+
}

0 commit comments

Comments
 (0)