我使用 VS 2013 和 TFS 2013。
我创建了一个全新的解决方案并按照此处编写的步骤进行操作: http://www.ewaldhofman.nl/post/2010/04/29/Customize-Team-Build-2010-e28093-Part-4-Create-your-own-activity.aspx
注意他的 vs\tfs 版本和我的版本的区别。
从源代码管理中获取流程模板 xaml 后,复制它,将其粘贴到 Template 文件夹中,将其添加到项目中,将构建操作更改为 XamlAppDef,尝试构建程序,但出现此错误:
错误 2 扩展 'Microsoft.Activities.Build.Validation.ValidationBuildExtension' 引发类型为 'System.Activities.InvalidWorkflowException' 的异常:'处理工作流树时遇到以下错误: “VisualBasicValue”:编译器错误遇到处理表达式“BuildNumberFormat”。 未声明“BuildNumberFormat”。由于其保护级别,它可能无法访问。 '.模板
有什么想法吗? 提前致谢!
最佳答案
转到 template.xaml 的属性并将构建操作属性设置为无: http://tfsbuildextensions.codeplex.com/wikipage?title=How%20to%20integrate%20the%20extensions%20into%20a%20build%20template
关于c# - 无法构建其中包含 processTemplate.xaml 的项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24433572/