Skip to content

Commit 3e172cf

Browse files
Fix CI dotnet restore failure by specifying solution file
.NET 10 SDK requires explicit solution file when multiple solution files exist (.sln and .slnx). Updated build-and-test.yml to specify IntelliTect.Multitool.sln for restore, build, and test commands. Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
1 parent c09d0a5 commit 3e172cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
with:
2626
global-json-file: global.json
2727
- name: Restore dependencies
28-
run: dotnet restore
28+
run: dotnet restore IntelliTect.Multitool.sln
2929
- name: Build
30-
run: dotnet build -p:ContinuousIntegrationBuild=True -p:ReleaseDateAttribute=True --no-restore --configuration Release
30+
run: dotnet build IntelliTect.Multitool.sln -p:ContinuousIntegrationBuild=True -p:ReleaseDateAttribute=True --no-restore --configuration Release
3131
- name: Test
32-
run: dotnet test --no-build --configuration Release --verbosity normal --logger trx --results-directory ${{ runner.temp }}
32+
run: dotnet test IntelliTect.Multitool.sln --no-build --configuration Release --verbosity normal --logger trx --results-directory ${{ runner.temp }}
3333
- name: Convert TRX to VS Playlist
3434
if: failure()
3535
uses: BenjaminMichaelis/trx-to-vsplaylist@v2

0 commit comments

Comments
 (0)