Skip to content
download

GitHub Action

Setup MSBuild.exe

v1 Latest version

Setup MSBuild.exe

download

Setup MSBuild.exe

Uses VSWhere.exe to locate latest MSBuild & put it into the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup MSBuild.exe

uses: warrenbuckley/Setup-MSBuild@v1

Learn more about this action in warrenbuckley/Setup-MSBuild

Choose a version

setup-MSBuild

This action sets up MSBuild.exe as a CLI tool for use in actions by:

  • optionally downloading and caching a version of VSWhere.exe to help find the latest MSBuild on the machine
  • Adds the location of the MSBuild to the PATH

Usage

Basic:

steps:
name: ASP.NET CI
on: [push]
jobs:
  build:
    runs-on: windows-latest

    steps:
    - uses: actions/checkout@master

    - name: Setup MSBuild.exe
      uses: warrenbuckley/Setup-MSBuild@v1

    - name: MSBuild
      working-directory: src
      run: msbuild MyProject.csproj

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide