Skip to content

Commit f5556f4

Browse files
author
Edouard Poor
committed
Improve build script to avoid MSB4121 warnings
- Build individual projects instead of entire solution - Eliminates MSB4121 warnings about unit test projects not configured for Release - Cleaner build output with no warnings for packaged projects
1 parent f39124d commit f5556f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-nuget.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ echo "Building and packing NuGet packages with version $VERSION..."
2222
# Clean previous builds
2323
dotnet clean --configuration Release
2424

25-
# Build solution
26-
dotnet build --configuration Release --no-restore
25+
# Build individual projects that will be packaged
26+
dotnet build src/PQSoft.HttpFile/PQSoft.HttpFile.csproj --configuration Release --no-restore
27+
dotnet build src/PQSoft.JsonComparer/PQSoft.JsonComparer.csproj --configuration Release --no-restore
28+
dotnet build src/PQSoft.JsonComparer.AwesomeAssertions/PQSoft.JsonComparer.AwesomeAssertions.csproj --configuration Release --no-restore
2729

2830
# Pack packages with specified version (in dependency order)
2931
echo "Packing packages..."

0 commit comments

Comments
 (0)