Skip to content

Commit

Permalink
Update dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Nov 15, 2024
1 parent 1c6f5e5 commit 732a145
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,35 @@ jobs:
with:
fetch-depth: 0

# Install the .NET Core workload
# Install Visual Studio Build Tools with MSBuild
- name: Install Visual Studio Build Tools
run: |
choco install visualstudio2019buildtools --ignore-checksums -y
choco install visualstudio2019-workload-netbuildtools --ignore-checksums -y
# Install .NET Core SDK
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
dotnet-quality: preview

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
# Set up MSBuild with the installed Build Tools
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
run: |
echo "Adding MSBuild to path"
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin" >> $GITHUB_PATH
# Execute all unit tests in the solution
# Execute unit tests
- name: Execute Unit Tests
run: dotnet test ${{ matrix.solution }} -c ${{ matrix.configuration }} /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0649,CA1416,NU5104,NETSDK1138,SYSLIB0003
env:
NUGET_CONFIG_PATH: ./NuGet.Config

# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the Skylark
run: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" ${{ matrix.solution }} /t:Restore /p:Configuration=$env:Configuration'
# Restore and Build using MSBuild (Framework version)
- name: Restore and Build the Skylark
run: |
'"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe"' ${{ matrix.solution }} /t:Restore;Build /p:Configuration=$env:Configuration
env:
NUGET_CONFIG_PATH: ./NuGet.Config
Configuration: ${{ matrix.configuration }}

0 comments on commit 732a145

Please sign in to comment.