visual-studio - 使用 Github Actions 构建多个 Visual Studio 解决方案
问题描述
我正在尝试使用 Github Actions 构建几个解决方案。我正在使用矩阵策略,因为我需要在 x64 和 x86 中为 Release 和 Debug 构建,但是,我找不到如何使用通配符来构建多个解决方案。我目前有这个:
jobs:
samples-build-VS-2019:
runs-on: windows-2019
strategy:
matrix:
configuration: [Release, Debug]
platform: [x86, x64]
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.3
- name: Use NuGet 5.2.0
uses: nuget/setup-nuget@v1
- name: Restore nuget packages for all solutions
run: msbuild 'Samples/**/*.sln' /p:configuration=${{ matrix.configuration }} /p:platform=${{ matrix.platform }} /t:restore
- name: Build all Sample solutions
run: msbuild 'Samples/**/*.sln' /p:configuration=${{ matrix.configuration }} /p:platform=${{ matrix.platform }}
不幸的是,这给了我一个“MSBUILD:错误 MSB1009:项目文件不存在”。错误。甚至有可能做到这一点吗?我需要这样做,因为我需要 CI 在添加新解决方案/项目以及现有解决方案的拉取请求上运行。
解决方案
推荐阅读
- javascript - Angular JS 动态设置 tabindex 属性
- python - 解决断言错误和Value错误的解决方案?
- python-3.x - 从 Keras 中的同一目录生成训练、测试和验证集
- python - pyenv mkvirtualenv 无法使用 pypy3
- python - Python Turtle 在计时器上的坐标列表中移动
- c# - WhenAny vs WhenAll vs WaitAll vs none,假设结果立即被使用
- python - 无法从不同包中的模块导入模块
- python - 如何从 Spotify 获取 Oauth 令牌
- linux - 授予非 root 用户对已安装存储桶的读取权限
- javascript - JS - Bpm Analyzer:AudioContext.decodeAudioData 的参数不能是分离的缓冲区