Azure Devops 管道 - 使用 Microsoft Visual Studio 安装程序项目
Azure Devops Pipeline - Use Microsoft Visual Studio Installer Projects
我正在使用 Azure devops 和 VM = vmImage: 'windows-2019' 我想知道如何从我的 vdproj 生成 MSI 文件。
在我的本地 visual studio 中,我安装了扩展程序 "Microsoft Visual Studio Installer Projects",它工作正常。但是在我没有的 Azure 管道托管代理的 VS2019 中,我无法将 msi 作为工件生成。
我已经尝试通过 devenv.exe cmd 运行,但由于我没有扩展程序,所以它没有用。
有什么方法可以从 azure pipeline 生成 msi 文件吗?我尝试了不同的方法,一些自定义任务,但没有用。
或者我可以将我的设置更改为 MsBuild 重新识别的另一种类型的项目吗?
我的错误:
The project file "xxx.vdproj" is not supported by MSBuild and cannot be built.
干杯。
The project file "xxx.vdproj" is not supported by MSBuild and cannot
be built.
对于此问题,那是因为 Visual Studio 安装程序项目扩展未安装在托管代理上。您可以查看此 link 以获取安装在 Microsoft 托管 agent2019 上的软件列表。
作为解决方法,您必须将 own build agent 配置为 运行 构建。
确保 VS 安装程序项目扩展安装在您自己的构建代理上,然后您可以使用带 "devenv" 的命令行任务或使用 "Build VS Installer" 任务来构建安装项目。
要通过 VS 安装程序项目构建 .msi
文件,您可以在市场中使用 Build VS Installer 任务。
您可以在任务模式选项中指定构建 .sln 或 .vdproj 以生成 .msi 文件。
类似情况如下:, ,可以参考.
Component.VSInstallerProjects v: 0.9.9 现已安装在 Microsoft 托管代理 2019 上。
我正在使用 Azure devops 和 VM = vmImage: 'windows-2019' 我想知道如何从我的 vdproj 生成 MSI 文件。
在我的本地 visual studio 中,我安装了扩展程序 "Microsoft Visual Studio Installer Projects",它工作正常。但是在我没有的 Azure 管道托管代理的 VS2019 中,我无法将 msi 作为工件生成。
我已经尝试通过 devenv.exe cmd 运行,但由于我没有扩展程序,所以它没有用。
有什么方法可以从 azure pipeline 生成 msi 文件吗?我尝试了不同的方法,一些自定义任务,但没有用。
或者我可以将我的设置更改为 MsBuild 重新识别的另一种类型的项目吗?
我的错误:
The project file "xxx.vdproj" is not supported by MSBuild and cannot be built.
干杯。
The project file "xxx.vdproj" is not supported by MSBuild and cannot be built.
对于此问题,那是因为 Visual Studio 安装程序项目扩展未安装在托管代理上。您可以查看此 link 以获取安装在 Microsoft 托管 agent2019 上的软件列表。
作为解决方法,您必须将 own build agent 配置为 运行 构建。
确保 VS 安装程序项目扩展安装在您自己的构建代理上,然后您可以使用带 "devenv" 的命令行任务或使用 "Build VS Installer" 任务来构建安装项目。
要通过 VS 安装程序项目构建 .msi
文件,您可以在市场中使用 Build VS Installer 任务。
您可以在任务模式选项中指定构建 .sln 或 .vdproj 以生成 .msi 文件。
类似情况如下:
Component.VSInstallerProjects v: 0.9.9 现已安装在 Microsoft 托管代理 2019 上。