简体   繁体   English

使用 GitHub Actions (YML) 创建 MSI 文件

[英]Creating MSI files with GitHub Actions (YML)

I have a Visual Studio 2017 project that has C++, C#, C++/CLI and Installers … all the projects load but the installers (vdproj projects ) do not build …我有一个 Visual Studio 2017 项目,其中包含 C++、C#、C++/CLI 和安装程序……所有项目都已加载,但安装程序(vdproj 项目)未构建……

name: xxx-github-actions
on: [push]
jobs:
build-release-configuration:
runs-on: self-hosted
steps:

name: checkout
uses: actions/checkout@v3
uses: actions/setup-node@v3
with:
node-version: ‘14’
name: Add msbuild to Path
uses: microsoft/setup-msbuild@v1
with:
vswhere-path: ‘C:\Program Files (x86)\Microsoft Visual Studio\Installer’
vs-version: ‘[15.9,16.0)’
  - uses: nuget/setup-nuget@v1
    with:
     nuget-version: 4.7.1
  - run: nuget restore xxx.project.sln  
    
  - run: msbuild xxx.project.sln  /p:Configuration=Release /p:Platform=x64

I found a way to accomplish this - by using DevEnv.com ...我找到了一种方法来实现这一点 - 通过使用 DevEnv.com ...

run: .\DevEnv.com "xxx.project.sln " /rebuild "Release|x64"
working-directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM