From 8a3112c71f173bf58a222806b0cf4c0240af4e84 Mon Sep 17 00:00:00 2001 From: Wise Man <137760120+Greenie0701@users.noreply.github.com> Date: Sun, 7 Sep 2025 09:28:45 +0530 Subject: [PATCH] ci: fix T4 template transform by adding EnvDTE & Interop references --- .github/workflows/Build_mR-NB.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/Build_mR-NB.yml b/.github/workflows/Build_mR-NB.yml index d69dac1a..1c4281dd 100644 --- a/.github/workflows/Build_mR-NB.yml +++ b/.github/workflows/Build_mR-NB.yml @@ -32,21 +32,15 @@ jobs: shell: pwsh run: | dotnet tool install --global dotnet-t4 - # Refresh PATH to include global tools $env:PATH += ";$env:USERPROFILE\.dotnet\tools" - - $interopPath = "$env:GITHUB_WORKSPACE\mRemoteNG\libs\Microsoft.VisualStudio.Interop.dll" $ttFile = "$env:GITHUB_WORKSPACE\mRemoteNG\Properties\AssemblyInfo.tt" - + # VS Enterprise 2022 assemblies + $vsPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\PublicAssemblies" Write-Host "Transforming T4 template" - t4 $ttFile -P platformType=${{ matrix.platform }} + t4 $ttFile -P platformType=${{ matrix.platform }} -r:"$vsPath\EnvDTE.dll" -r:"$vsPath\Microsoft.VisualStudio.Interop.dll" env: PLATFORM: '${{ matrix.platform }}' - - - - - name: (04) Cache NuGet Packages uses: actions/cache@v4