Skip to content

使用中的一些问题记录 #105

@Maple512

Description

@Maple512

目前来说,能在github action中正常发包,就满足了,这里记录一些使用中的问题

配置

  • 缺少统一的输出目录。一般来说,我需要把所有的包都统一输出到某个目录,而不是各自项目下的某个目录

文档

  • 所有的配置项希望能在readme中直接体现

Github Action

在github action配置的操作系统是ubuntu-latest时会报错,错误详情

EXEC : error : 无法从/home/runner/work/utility/utility/MapleClub.Utility/MapleClub.Utility.csproj 找到项目文件 [/home/runner/work/utility/utility/MapleClub.Utility/MapleClub.Utility.csproj]

github action配置:

name: build

on:
  push:
    branches:
      - main

  pull_request:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@main
      - uses: actions/setup-dotnet@main
        with:
          dotnet-version: 5.0.*

      - name: restore
        run: dotnet restore

      - name: build
        run: dotnet build --no-restore -c Release

      - name: tset
        run: dotnet test --no-restore -c Release

使用windows-latest后,就正常了,但是打印的日志乱码了,详情

nuspec

打包后的nuspec缺少license相关的属性,我用dotnet打包后,会有下面两个lisence相关

<license type="expression">Apache-2.0</license>
<licenseUrl>https://licenses.nuget.org/Apache-2.0</licenseUrl>

另外,这是个很有用的工具,多谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions