我正在使用 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/