Skip to content

Cleanup csproj

Cleanup csproj #9

Workflow file for this run

# 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
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master", "dev" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '*/packages.lock.json'
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
# - name: Install targeting packs
# run: '& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\setup.exe" modify --quiet --config .vsconfig --installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"'
- name: Restore dependencies
run: msbuild /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build
run: msbuild /t:Build /p:RestorePackages=false /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# dotnet SDK can't find net30
# error MSB3644: The reference assemblies for .NETFramework,Version=v3.0 were not found.
# - name: Restore dependencies
# run: dotnet restore
# - name: Build
# run: dotnet build --no-restore
# - name: Test
# run: dotnet test --no-build --verbosity normal