Skip to content

How to build project targeting Net35 with GitHub Actions #25825

Answered by eddiechenms
krafs asked this question in Actions
Discussion options

You must be logged in to vote

You can call " msbuild.exe" which is installed on “Windows Server 2019” and “Windows Server 2016 R2” virutal environments to build .Net Framework projects.

Here is the example to call msbuild to build the project with “Windows Server 2019” runner:

jobs:
  build:
    runs-on: windows-2019
    steps:
      - name: checkout
        uses: actions/checkout@v1
      - name: Build DotNET35
        run: |
           cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
           .\MSBuild.exe $Env:GITHUB_WORKSPACE\pathtoyoursolutionorproject

If you want to run the workflow with “Windows Server 2016 R2”, change the path to:

C:\Program Files (x86)\Microsoft Visu…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants