XFEExtension
【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等
关注
0
Fork
0
Star
0
name: Validate
on:
push:
branches:
- master
- main
pull_request:
permissions:
contents: read
env:
DOTNET_VERSION: 10.0.x
SOLUTION_PATH: XFEExtension.slnx
EXCLUDED_PROJECT_PATH: XFEExtension/XFEExtension.csproj
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Prepare build solution
shell: pwsh
run: |
[xml]$solution = Get-Content "${{ env.SOLUTION_PATH }}" -Raw
$excludedProjectPath = "${{ env.EXCLUDED_PROJECT_PATH }}"
$projects = @($solution.Solution.Project)
foreach ($project in $projects) {
if ($project.Path -eq $excludedProjectPath) {
[void]$project.ParentNode.RemoveChild($project)
}
}
$buildSolutionPath = Join-Path "${{ github.workspace }}" "build.filtered.slnx"
$solution.Save($buildSolutionPath)
"BUILD_SOLUTION_PATH=$buildSolutionPath" >> $env:GITHUB_ENV
- name: Restore
run: dotnet restore ${{ env.BUILD_SOLUTION_PATH }}
- name: Build
run: dotnet build ${{ env.BUILD_SOLUTION_PATH }} --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:ContinuousIntegrationBuild=true
name: Validate
on:
push:
branches:
- master
- main
pull_request:
permissions:
contents: read
env:
DOTNET_VERSION: 10.0.x
SOLUTION_PATH: XFEExtension.slnx
EXCLUDED_PROJECT_PATH: XFEExtension/XFEExtension.csproj
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Prepare build solution
shell: pwsh
run: |
[xml]$solution = Get-Content "${{ env.SOLUTION_PATH }}" -Raw
$excludedProjectPath = "${{ env.EXCLUDED_PROJECT_PATH }}"
$projects = @($solution.Solution.Project)
foreach ($project in $projects) {
if ($project.Path -eq $excludedProjectPath) {
[void]$project.ParentNode.RemoveChild($project)
}
}
$buildSolutionPath = Join-Path "${{ github.workspace }}" "build.filtered.slnx"
$solution.Save($buildSolutionPath)
"BUILD_SOLUTION_PATH=$buildSolutionPath" >> $env:GITHUB_ENV
- name: Restore
run: dotnet restore ${{ env.BUILD_SOLUTION_PATH }}
- name: Build
run: dotnet build ${{ env.BUILD_SOLUTION_PATH }} --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:ContinuousIntegrationBuild=true