包时出现无法识别的错误

包时出现无法识别的错误

本文介绍了MSBuild DeploymentModel 部署 SSIS 包时出现无法识别的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 PowerShell 脚本来自动部署 SSIS 项目,并在自定义 TFS 任务中使用它.在此任务中,我使用了 msbuild 步骤来构建 SSIS 项目,该项目因此错误而失败:

I created a PowerShell script to automate deployment for SSIS projects and used it in a custom TFS task. Within this task I used a msbuild step to build the SSIS project which keeps failing with this error:

错误 MSB4067:元素 Project 下的元素 DeploymentModel无法识别.

我在 Visual Studio 2015 中构建了 SSIS 项目就好了.我尝试过 msbuild 版本 12.0 和 15.0,它们都有相同的错误.谢谢

I built the SSIS projects in visual studio 2015 just fine. I have tried msbuild version 12.0 and 15.0 and they both have the same error.Thank you

推荐答案

当您通过 VS 构建 SSIS 项目时,实际上是在调用 /Build (devenv.exe),不直接使用MSBuild.

When you build your SSIS projects via VS, actually is calling /Build (devenv.exe), not directly using MSBuild.

没有支持通过 devenv.exe 构建的内置任务.仍在 backlog 中.更多细节请参考:"Visual Studio Build" 构建步骤,实际调用 devenv.com 而不是msbuild?

There is no build-in task that supports building via devenv.exe.Still in the backlog. More details please refer: "Visual Studio Build" build step that actually invokes devenv.com instead of msbuild?

作为一种解决方法,您可以尝试使用 3 方扩展任务 SSIS Build &立即部署.

As a workaround, you could try to use 3-party extension task SSIS Build & Deploy for now.

这篇关于MSBuild DeploymentModel 部署 SSIS 包时出现无法识别的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:44