小编Saj*_*man的帖子

Github Action DotNetCore sln 和项目在同一文件夹中

name: .NET Core
Run Code Online (Sandbox Code Playgroud)

on: push: 分支: [ master ] pull_request: 分支: [ master ]

工作:构建:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
  uses: actions/setup-dotnet@v1
  with:
    dotnet-version: 3.1.101
- name: Install dependencies
  run: dotnet restore
- name: Build
  run: dotnet build --configuration Release --no-restore
- name: Test
  run: dotnet test --no-restore --verbosity normal
Run Code Online (Sandbox Code Playgroud)

这是我的 yml 代码。它显示错误 MSBUILD:错误 MSB1003:指定项目或解决方案文件。当前工作目录不包含项目或解决方案文件。

[错误]进程已完成,退出代码为 1。

in dotnet restorestep 因为项目文件夹中的sln。如何解决这个问题呢

yaml .net-core github-actions

4
推荐指数
2
解决办法
1361
查看次数

标签 统计

.net-core ×1

github-actions ×1

yaml ×1