mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-10 06:16:53 +00:00
fix(ci): remove PSProxmoxVE.deps.json to fix assembly loading in PS 7.x
The deps.json file causes .NET's AssemblyLoadContext to conflict with PowerShell's own runtime assembly resolution, resulting in FileNotFoundException for System.Runtime 9.0.0.0 on all PS 7.x platforms. Binary PS modules should not include deps.json. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -180,6 +180,9 @@ jobs:
|
||||
- name: Build module
|
||||
run: dotnet publish src/PSProxmoxVE/PSProxmoxVE.csproj --configuration Release --framework net9.0 --output ./publish/net9.0
|
||||
|
||||
- name: Remove deps.json from publish output
|
||||
run: rm -f ./publish/net9.0/PSProxmoxVE.deps.json
|
||||
|
||||
- name: Install Pester 5
|
||||
shell: pwsh
|
||||
run: Install-Module -Name Pester -MinimumVersion 5.0 -Force -Scope CurrentUser
|
||||
|
||||
@@ -42,6 +42,10 @@ jobs:
|
||||
- name: Build module
|
||||
run: dotnet publish src/PSProxmoxVE/PSProxmoxVE.csproj --configuration Release --framework ${{ matrix.framework }} --output ./publish/${{ matrix.framework }}
|
||||
|
||||
- name: Remove deps.json from publish output
|
||||
shell: bash
|
||||
run: rm -f ./publish/${{ matrix.framework }}/PSProxmoxVE.deps.json
|
||||
|
||||
- name: Install Pester 5 (PS 5.1)
|
||||
if: matrix.ps_version == '5.1'
|
||||
shell: powershell
|
||||
|
||||
Reference in New Issue
Block a user