代码之家  ›  专栏  ›  技术社区  ›  Cosmin

如何使用Azure DevOps管道正确构建MSI安装项目?

  •  4
  • Cosmin  · 技术社区  · 6 年前

    Build VS Installer 为了实现这一点。我的主要问题是,我不知道我到底做错了什么,或者我遗漏了什么步骤,我在任何地方都找不到明确的说明。

    我试过的是:

    1. 使用托管的2017代理池和基本.NET桌面模板。问题:

    2018-11-28T22:57:56.3186071Z DEBUG: Aggregated: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.com 2018-11-28T22:57:56.3211382Z Now running (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.com) with Arguments ("D:\a\1\s" /Build "release|any cpu" /Out "D:\a\1\b\BuildInstaller_Log_20181128225756.txt") 2018-11-28T22:58:54.0015320Z Done running DevEnv process. Success = True. 2018-11-28T22:58:54.1169279Z ##[warning]No .MSI files were found, please check your build-configuration. If this is expected, you might consider to use the default Visual Studio Build task instead of this custom Installer task. 2018-11-28T22:58:54.1434410Z ##[section]Finishing: Create .msi file(s) from VS Installer project(s).

    enter image description here

    1. 创建我自己的构建代理 in the documentation VS Installer Projects extension 安装在服务器上。我从 this 相关答案。结果:

    2018-11-29T17:46:03.9813075Z DEBUG: Aggregated: System.Object[]\devenv.com 2018-11-29T17:46:04.4346060Z ##[error]Cannot retrieve the dynamic parameters for the cmdlet. The specified wildcard character pattern is not valid: System.Object[] 2018-11-29T17:46:04.4716416Z ##[section]Finishing: Create .msi file(s) from VS Installer project(s).

    enter image description here

    我也尝试了从市场上的DevEnv构建,而不是DutchWorkz构建,但仍然无法获取.msi文件。有人能告诉我一些如何实现这个简单目标的明确步骤吗?

    1 回复  |  直到 6 年前
        1
  •  2
  •   Gourav    6 年前

    我想知道为什么我会得到下面的错误信息,并想与大家分享,以防将来有人发现。

    调试:

    合计: System.Object[]\devenv.com System.Object[]

    问题是我的私有构建服务器上安装了两个版本(专业版和企业版)的Visual Studio 2017。一旦我移除其中一个,一切都很好。不知道是否有办法让它与安装两者一起工作,但我不需要两者都安装。