build-process-template

How to run another activity in a customized activity of TFS 2012 build process template?

血红的双手。 提交于 2020-01-05 11:13:28
问题 I'm writing a customized activity for TFS build process workflow, e.g. guideline here. In my C# CodeActivity .Execute() method, I want to run another activity, e.g. ConvertWorkspaceItem as descibed here. How can I do that? 回答1: Try doing some research with a NativeActivity instead of a CodeActivity, so the execution context allows you to schedule other child activities. E.g.: class YourActivity : NativeActivity { protected override void Execute(NativeActivityContext context) {

How to run another activity in a customized activity of TFS 2012 build process template?

此生再无相见时 提交于 2020-01-05 11:13:11
问题 I'm writing a customized activity for TFS build process workflow, e.g. guideline here. In my C# CodeActivity .Execute() method, I want to run another activity, e.g. ConvertWorkspaceItem as descibed here. How can I do that? 回答1: Try doing some research with a NativeActivity instead of a CodeActivity, so the execution context allows you to schedule other child activities. E.g.: class YourActivity : NativeActivity { protected override void Execute(NativeActivityContext context) {

Create a build environment for “C” project to dynamically select folders during compile time

点点圈 提交于 2019-12-12 04:40:40
问题 Lets say my folder structure is something like this .. +-- Application | +-- MICRO_CONTROLLER_1 | +-- MICRO_CONTROLLER_2 | +-- MICRO_CONTROLLER_3 and i have a compile switch ( SELECT_MICRO) set to #define SELECT_MICRO == MICRO_CONTROLLER_1 , then my project should build application with driver files in MICRO_CONTROLLER_1 , similarly if #define SELECT_MICRO == MICRO_CONTROLLER_2 , then application should build application with driver files in MICRO_CONTROLLER_2 Please let me know if there

Issue with Database project (DACPAC) - Continuous delivery

二次信任 提交于 2019-12-11 02:39:01
问题 I have Microsoft TFS build process to deploy web project to azure web role, this occurs automated way every day. I have followed Azure article https://azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-continuous-delivery/ I have following MSBuild arguments in my build process, as above article suggested /t:Publish /p:PublishDir=C:\MSCD\ When i add database project to my project solution, build is keep failing. Getting error message The "SqlPublishTask" task was not given

How to get the updated argument(s) of a build process template refreshed in 'Process' section of a build definition?

狂风中的少年 提交于 2019-12-01 06:20:55
For a build process template , we can add/remove/edit the argument list of it and use it as variables within the build/work-flow steps. I reading the nice guide here I'm cloning the template DefaultTemplate.11.1.xaml to sayHello-DefaultTemplate.11.1.xaml and edit it via Visual Studio 2012. I first added one argument, called TestMessage . I check in my changeset to the Source Control. Then I create a build definition sayHelloBuild based on this template. And when I go to the Process tab, I can see TestMessage in the Misc section. I save the build definition. Trying to queue it and it gets

How to get the updated argument(s) of a build process template refreshed in 'Process' section of a build definition?

感情迁移 提交于 2019-12-01 05:23:58
问题 For a build process template , we can add/remove/edit the argument list of it and use it as variables within the build/work-flow steps. I reading the nice guide here I'm cloning the template DefaultTemplate.11.1.xaml to sayHello-DefaultTemplate.11.1.xaml and edit it via Visual Studio 2012. I first added one argument, called TestMessage . I check in my changeset to the Source Control. Then I create a build definition sayHelloBuild based on this template. And when I go to the Process tab, I can

TFS Build error - “The specified path, file name, or both are too long…”

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 09:51:34
I'm writing the Custom Activities of build process template. I got the below issue when build the activity. >XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' : 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'. Do you have any ideas? Please help! I find one tip here . Hope it might be helpful to you. Currently there are a two workarounds: Reduce the

TFS Build error - “The specified path, file name, or both are too long…”

时间秒杀一切 提交于 2019-11-29 14:43:37
问题 I'm writing the Custom Activities of build process template. I got the below issue when build the activity. >XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' : 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'. Do you have any ideas? Please help! 回答1: I