WeeXnesSuite/.forgejo/workflows/dotnet.yaml
WeeXnes 16b21bf005
Some checks failed
Dotnet Build / build (push) Failing after 1m12s
.forgejo/workflows/dotnet.yaml aktualisiert
2025-05-18 19:20:31 +00:00

34 lines
No EOL
869 B
YAML

name: Dotnet Build
on: [push]
jobs:
build:
runs-on: win11
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: MSBuild version
run: |
msbuild -version
- name: Extract project version
shell: pwsh
run: |
$version = Select-String -Path "WeeXnes/WeeXnes.csproj" -Pattern "<Version>(.+?)</Version>" | ForEach-Object {
($_ -match "<Version>(.+?)</Version>") | Out-Null
$matches[1]
}
Write-Output "##vso[task.setvariable variable=PROJECT_VERSION]$version"
Write-Output "Project version is $version"
- name: Restore Packages
run: nuget restore WeeXnes.sln
- name: Build Solution
run: |
msbuild WeeXnes.sln /p:DeleteExistingFiles=True /p:platform="Any CPU" /p:configuration="Release"