diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0d9e24e..d0a28dc 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,28 +1,28 @@ # This workflow will build a .NET project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net -name: .NET +name: .NET Framework on: push: - branches: [ "dev" ] + branches: [ "dev", "fix-cli-net-framework" ] pull_request: branches: [ "dev" ] jobs: build: - - runs-on: windows-latest - + runs-on: windows-2019 steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 4.0 - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + - uses: actions/checkout@v2 + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1 + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.0.5 + - name: setup-msbuild + uses: microsoft/setup-msbuild@v1.1 + - name: Restore Packages + run: nuget restore Naticord.sln + - name: Build + run: 'msbuild Naticord.sln -t:rebuild -property:Configuration=Release' + - name: Test + run: dotnet test --no-build --verbosity normal