diff --git a/.circleci/config.yml b/.circleci/config.yml index 75ed228..2256eab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,9 +13,13 @@ jobs: chmod +x dotnet-install.sh ./dotnet-install.sh --channel 10.0 --install-dir "$HOME/.dotnet" export PATH="$HOME/.dotnet:$PATH" - dotnet restore FileCabinet.slnx /p:EnableWindowsTargeting=true + # Restore individual projects (custom .slnx is not a valid dotnet solution file) + dotnet restore FileCabinet.vbproj /p:EnableWindowsTargeting=true + dotnet restore FileCabinet.Cli/FileCabinet.Cli.vbproj /p:EnableWindowsTargeting=true dotnet restore FileCabinet.Tests/FileCabinet.Tests.vbproj /p:EnableWindowsTargeting=true - dotnet build FileCabinet.slnx --configuration Release --no-restore /p:EnableWindowsTargeting=true + # Build application projects explicitly + dotnet build FileCabinet.vbproj --configuration Release --no-restore /p:EnableWindowsTargeting=true + dotnet build FileCabinet.Cli/FileCabinet.Cli.vbproj --configuration Release --no-restore /p:EnableWindowsTargeting=true dotnet test FileCabinet.Tests/FileCabinet.Tests.vbproj --configuration Release --no-restore --logger "trx;LogFileName=test-results.trx" --results-directory TestResults /p:EnableWindowsTargeting=true - store_test_results: path: TestResults