Virtual-environments: Add "Microsoft Visual Studio Installer Projects" Extension

Created on 7 Aug 2020  路  11Comments  路  Source: actions/virtual-environments

Tool information

Area for Triage: Visual Studio

Question, Bug, or Feature?: Tool Request

Virtual environments affected

  • [ ] macOS 10.15
  • [ ] Ubuntu 16.04 LTS
  • [ ] Ubuntu 18.04 LTS
  • [ ] Ubuntu 20.04 LTS
  • [ ] Windows Server 2016 R2
  • [x] Windows Server 2019

Can this tool be installed during the build?
AFAIK, no. Otherwise it would still be convenient to have this by default.

Tool installation time in runtime
It's just 5 MB, so < 1min

Are you willing to submit a PR?
You'll know better how to install a VS extension inside your image generation ecosystem.

C++ Windows awaiting-deployment enhancement

Most helpful comment

@softworkz I'm afraid the new image won't be in the next week, likely the week after.

After waiting years for this, those few days won't really matter 馃槅
Thanks for letting me know!

All 11 comments

Hello, @softworkz
I've added MS Visual Studio Installer projects extension to Windows image deployment.
It will be there about on the next week.
If you'll not find it - feel free to ping me
Thank you

@softworkz I'm afraid the new image won't be in the next week, likely the week after.

@softworkz I'm afraid the new image won't be in the next week, likely the week after.

After waiting years for this, those few days won't really matter 馃槅
Thanks for letting me know!

@softworkz good news! The image with MS Visual Studio Installer projects extension is already deployed! Could you check it, please?

I've checked the availability of this VSIX extension on the windows-latest runner - "Microsoft Visual Studio Installer Projects" extension is present

@andy-mishechkin @miketimofeev

Great job! Thanks a lot for making this possible.

I was able to successfully build a Visual Studio Solution including a Visual Studio Installer Project (vdproj) with an Azure Build Pipeline on an Azure hosted build agent.

Instructions

1. Don't use the "Visual Studio Build" task

The name of this task is lying. It doesn't build with Visual Studio but uses MSBuild instead.

Unfortunately none of the built-in Azure tasks is able to run a build via devenv.exe.

2. How to Build Instead

  • Command Line
    Of course you can always use a command line task and assemble the required parameters manually, and write some code to detect the installation path of VS (latest or specific version)
  • I tried the "DevEnv Build" extension from the marketplace and it worked right away
    https://marketplace.visualstudio.com/items?itemName=mmajcica.devenv-build

    • I entered the solution for Solution / Project

    • left Project empty

    • Configuration: Release

    • Platform: Any CPU

    • Deploy: Unchecked

    • Clean: Checked

3. Copy Files Task

Some of the templates include a copy files task with a Contents parameter similar to **\bin\$(BuildConfiguration)\**

Make sure to change this as it won't copy the generated MSI setup (because there is no 'bin' subfolder).

That's all. I'm sure this will make a lot of people very happy..

I am still not able to get this working on my project. I am getting the error:

ERROR: An error occurred while validating.  HRESULT = '8000000A'

Which searching around lead me to this as the best explanation of why:

https://github.com/it3xl/MSBuild-DevEnv-Build-Server-Workarounds/blob/master/workaround/DevEnv-Vdproj-VS2017_Enterprise-HRESULT-8000000A-EnableOutOfProcBuild.bat

https://github.com/it3xl/MSBuild-DevEnv-Build-Server-Workarounds/issues/1#issuecomment-386780313

Is there any way we can get the DisableOutOfProcBuild command ran in the base image or the EnableOutOfProcBuild registry key added manually? I seems like I cannot cd out of the workspace folder to go run the command at build time.

Just add a "Command Line Script" task before the devenv task:

  • Script: DisableOutOfProcBuild.exe
  • Advanced > Working Directory:C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild

Oh thanks. It looks like the working-directory param was what I was missing. I was trying to cd out of the workspace and it would not let me. It seems you are jailed to the working directory. At least for Github actions.

I am using a command line but getting this error for all .modelproj:
Dise帽o\AccesoDatos\AccesoDatos\AccesoDatos.modelproj:聽The application which this project type is based on was not found. Please try this link for further information:聽https://go.microsoft.com/fwlink/?LinkId=660952&projecttype=F088123C-0E9E-452A-89E6-6BA2F21D5CAC

Was this page helpful?
0 / 5 - 0 ratings