依赖于条件 Attribute 的代码,保证在同一程序集生成,不要跨程序集,不然会分析不到。然后添加单元测试 #181
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: .NET Build | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| - name: Build | |
| run: dotnet build -c release | |
| - name: Test Debug | |
| run: dotnet test -c debug | |
| - name: Test Release | |
| run: dotnet test -c release | |
| - name: Pack | |
| run: dotnet pack ./src/DotNetCampus.CommandLine -c release --no-build |