Skip to content

Commit

Permalink
Try to specify which framework during msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
onizet committed Jul 15, 2024
1 parent a00b03e commit 18537a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Framework 4.6.2
- name: Setup .NET Framework
uses: microsoft/setup-msbuild@v2
with:
dotnet-version: 4.6.2
- name: Build
run: msbuild HtmlToOpenXml.sln /p:Configuration=Release
run: msbuild HtmlToOpenXml.sln /p:Configuration=Release /p:TargetFramework=net462 /restore
- name: Run tests (NET Framework)
run: vstest.console.exe test\HtmlToOpenXml.Tests\HtmlToOpenXml.Tests.dll

0 comments on commit 18537a4

Please sign in to comment.