Skip to content

Commit a3d0753

Browse files
committed
Use .slnx explicitly in all workflow commands
- Specify SWEN3.Paperless.RabbitMq.slnx in all dotnet commands - Ensures .NET SDK 9.0.200+ recognizes the solution file - Eliminates MSB1011 ambiguity error
1 parent 38dbf00 commit a3d0753

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@ jobs:
3737
args: convert icon.png -trim -resize 512x512 -gravity center -background transparent -extent 512x512 icon.png
3838

3939
- name: Restore dependencies
40-
run: |
41-
dotnet restore SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj
42-
dotnet restore SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj
40+
run: dotnet restore SWEN3.Paperless.RabbitMq.slnx
4341

4442
- name: Build solution
45-
run: |
46-
dotnet build SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj --configuration Release --no-restore
47-
dotnet build SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj --configuration Release --no-restore
43+
run: dotnet build SWEN3.Paperless.RabbitMq.slnx --configuration Release --no-restore
4844

4945
- name: Run tests
50-
run: dotnet test SWEN3.Paperless.RabbitMq.Tests/SWEN3.Paperless.RabbitMq.Tests.csproj --configuration Release --no-build
46+
run: dotnet test SWEN3.Paperless.RabbitMq.slnx --configuration Release --no-build
5147

5248
- name: Pack NuGet package
5349
run: dotnet pack SWEN3.Paperless.RabbitMq/SWEN3.Paperless.RabbitMq.csproj --configuration Release --no-build --output ./nupkg -p:GeneratePackageOnBuild=false

0 commit comments

Comments
 (0)