From 2eb43495aa83f0d95c4339be7ecaf9d6537b449b Mon Sep 17 00:00:00 2001 From: Programmers3539 Date: Sun, 14 Jan 2024 00:12:14 -0500 Subject: [PATCH 1/2] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 2292cbd..4e39458 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -79,7 +79,7 @@ jobs: uses: seanmiddleditch/gha-setup-vsdevenv@v4 - name: Build installer - run: devenv.com ${{github.workspace}}\Motion-Profile-Mapper\Motion-Profile-Mapper-Installer\Motion-Profile-Mapper-Installer.vdproj /build "${{ matrix.configuration }}|Any CPU" + run: cd ${{github.workspace}}\Motion-Profile-Mapper\ && devenv.com ${{github.workspace}}\Motion-Profile-Mapper\Motion-Profile-Mapper-Installer\Motion-Profile-Mapper-Installer.vdproj /build "${{ matrix.configuration }}|Any CPU" - uses: actions/upload-artifact@v4 with: From 0571920f38aa13b8f6ac54c2697b86be7634f421 Mon Sep 17 00:00:00 2001 From: Programmers3539 Date: Sun, 14 Jan 2024 00:15:13 -0500 Subject: [PATCH 2/2] Update dotnet-desktop.yml --- .github/workflows/dotnet-desktop.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 4e39458..8e5537a 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -77,6 +77,24 @@ jobs: - name: Setup VS Dev Environment uses: seanmiddleditch/gha-setup-vsdevenv@v4 + + - name: DisableOutOfProc Fix + run: | + function Invoke-DisableOutOfProcBuild { + param (); + $visualStudioWherePath = ('{0}/Microsoft Visual Studio/Installer/vswhere.exe' -f ${Env:ProgramFiles(x86)}); + $visualStudioInstallationPath = & $visualStudioWherePath -latest -products 'Microsoft.VisualStudio.Product.Enterprise' -property 'installationPath'; + $currentWorkingDirectory = ('{0}/Common7/IDE/CommonExtensions/Microsoft/VSI/DisableOutOfProcBuild' -f $visualStudioInstallationPath); + + Set-Location -Path $currentWorkingDirectory; + + $disableOutOfProcBuildPath = ('{0}/DisableOutOfProcBuild.exe' -f $currentWorkingDirectory); + + & $disableOutOfProcBuildPath; + + return; + } + Invoke-DisableOutOfProcBuild - name: Build installer run: cd ${{github.workspace}}\Motion-Profile-Mapper\ && devenv.com ${{github.workspace}}\Motion-Profile-Mapper\Motion-Profile-Mapper-Installer\Motion-Profile-Mapper-Installer.vdproj /build "${{ matrix.configuration }}|Any CPU"