Giter Site home page Giter Site logo

warrenbuckley / setup-msbuild Goto Github PK

View Code? Open in Web Editor NEW
47.0 4.0 20.0 696 KB

Set up your GitHub Actions workflow to add MSBuild.exe into the PATH

License: MIT License

TypeScript 39.24% JavaScript 60.76%
github-action msbuild msbuild-action github-actions

setup-msbuild's Introduction

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

Status: Archived

This GitHub action is now retired/archived as I have collobrated directly with Microsoft to release an official MSBuild GitHub Action https://github.com/microsoft/setup-msbuild https://github.com/marketplace/actions/setup-msbuild-exe

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

setup-msbuild's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

setup-msbuild's Issues

error ASPCONFIG: Could not load file or assembly 'System.Web.WebPages, Version=2.0.0.0,

See: https://github.com/Jeff-Tian/blogengine.net/runs/429701702?check_suite_focus=true

I use this action to build a solution file, which claims:

"D:\a\blogengine.net\blogengine.net\Source\BlogEngine\BlogEngine.sln" (default target) (1) ->
"D:\a\blogengine.net\blogengine.net\Source\BlogEngine\BlogEngine_NET.metaproj" (default target) (2) ->
(Build target) -> 
  D:\a\blogengine.net\blogengine.net\Source\BlogEngine\BlogEngine.NET\web.config(96): error ASPCONFIG: Could not load file or assembly 'System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. [D:\a\blogengine.net\blogengine.net\Source\BlogEngine\BlogEngine_NET.metaproj]

    68 Warning(s)
    1 Error(s)

Time Elapsed 00:00:33.85
##[error]Process completed with exit code 1.

How can I fix it?

Thanks for helping!

Question

Hi there, sorry for the interruption (this is not really a bug but a question).

Recently I've fixed my Windows build by doing this simple change to the path of MSBuild.exe: https://stackoverflow.com/a/57722042/544947 .

However, it seems that path is not present in the Windows machine/container being used by GithubActions. Do you mind giving me the canonical MSBuild.exe path for this? I would prefer not to depend on VSWhere.exe or GithubActions extensions.

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.