From c0be5b5b188423fe75c4c5f9b5f792d12bdfeaa8 Mon Sep 17 00:00:00 2001 From: "J. Fronny" <33260128+JFronny@users.noreply.github.com> Date: Tue, 7 Apr 2020 19:13:23 +0200 Subject: [PATCH] =?UTF-8?q?plz=20w=C3=B6rk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b83baf..d651468 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,8 +21,7 @@ jobs: dotnet restore & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m -p:Configuration=Release cp *\bin\Release\net461\package.zip . - $file = Get-Item $(Resolve-Path *\bin\Release\net461\*.exe).Path - $asm = $([Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll")) + $asm = $([Reflection.Assembly]::LoadFile($(Get-Item $(Resolve-Path *\bin\Release\net461\*.exe).Path).FullName)) $asmver = $asm.GetName().Version.ToString() echo "::set-output name=vers::$asmver" - name: Create Release @@ -47,8 +46,7 @@ jobs: asset_content_type: application/zip - name: Generate XML run: | - $file = Get-Item $(Resolve-Path *\bin\Release\net461\*.exe).Path - $asm = [Reflection.Assembly]::LoadFile($file.DirectoryName + "\" + $file.BaseName + ".dll") + $asm = $([Reflection.Assembly]::LoadFile($(Get-Item $(Resolve-Path *\bin\Release\net461\*.exe).Path).FullName)) [System.XML.XMLDocument]$xml=New-Object System.XML.XMLDocument [System.XML.XMLElement]$app=$xml.CreateElement("app") $xml.appendChild($app)