git - TFS 服务 GitContinouslyDeploymentTemplate.12.xaml 无法加载参数

标签 git azure azure-devops continuous-deployment

我正在使用 Microsoft 的 TFS 服务进行源代码控制。我已经选择了 git 存储库选项。

我想将构建持续部署到 Azure 网站 - 因此请按照此处的说明进行操作:http://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/ 。在 Azure 中,我选择 TFS 服务、Git 存储库,然后按照向导操作。

我在“步骤 4:触发重建并重新部署项目(子步骤 10)”时遇到了麻烦。我认为本指南引用的是 TFS 存储库而不是 Git,因此存在一些差异...

构建过程模板默认为 “GitContinouslyDeploymentTemplate.12.xaml”。当我编辑构建时 Visual Studio Team Explorer 中的定义有很多 过程部分第 5 部分的参数错误。错误说 一些东西的效果

"The parameter xxx [e.g. AutomatedTests|AdvancedTestSettings] could not be loaded because the type InArgument<...> was not found. You cannot edit this parameter, but you can save the build without it".

当我运行构建时,由于缺少这些参数,它似乎失败了。我不知道如何让它发挥作用。有谁知道如何克服这个问题吗?

顺便说一句,我已经更改了 1. Git 和 2. Build with 设置以指向我的 Web 应用程序的 .csproj 和发布/任何 cpu 构建配置中的设置。

最佳答案

您似乎正在使用比 Visual Studio 2013 更旧的版本来编辑生成定义。此生成定义带有 .12.xaml,指示您应该使用 Visual Studio 12.0 (2013) 来编辑模板。我知道 Visual Studio 11.0 = 2012 和 12.0 = 2013 可能会令人困惑,但事实就是如此。

您可以使用Visual Studio Express 2013 or a stand-alone installation of Team Explorer 2013创建构建定义并对其进行编辑。创建后,您可以从旧版本的 Visual Studio 触发构建,不会出现任何问题。

关于git - TFS 服务 GitContinouslyDeploymentTemplate.12.xaml 无法加载参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19976573/

相关文章:

git - 如何使用 git log --graph 显示标签名称和分支名称

git - 在 Jenkins 中测试所有 git 提交

git - 如何 merge 两个本地存储库

git - Jenkins + git : "tell me who you are" error, 为什么要打标签?

azure - 如何制作包含两行(来自两个 Kusto 查询)的 Application Insights 仪表板指标图表?

tfs - 尝试使用 TFS 跨平台命令行界面将任务上传到 VSO 时访问被拒绝

c# - 如何使用 C# 将多重身份验证登录到 Dynamics 365

android - Azure 移动应用程序 node.js 后端 Android 客户端 - 50 行限制

azure - 如何从 Azure Devops REST API 仅返回特定属性

在 Visual Studio Team Services 中的托管生成代理上进行 Nuget 还原时,找不到 AutoMapper 包 5.1.1