Skip to content

Specify a MSBuild.exe that supposedly should build .NET 3.5 projects #27

Specify a MSBuild.exe that supposedly should build .NET 3.5 projects

Specify a MSBuild.exe that supposedly should build .NET 3.5 projects #27

Workflow file for this run

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-2019
env:
Solution_Name: Wreck.sln
Configuration: Release
steps:
- name: Checkout
uses: actions/checkout@v3
#- name: Setup .NET
# uses: actions/setup-dotnet@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build solution
# run: msbuild $env:Base_Directory\$env:Solution_Name -t:rebuild -property:Configuration=$env:Configuration
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
msbuild Wreck.sln -t:Rebuild -p:Configuration=Release -p:Platform=x86 -p:TargetFrameworkVersion=v2.0
#run: pwd && ls
env:
Configuration: ${{ matrix.configuration }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: wreck
path: bin\Release