Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base class stores a reference of CodeActivityContext #18

Open
brandon-hawbaker opened this issue Feb 1, 2016 · 0 comments
Open

Base class stores a reference of CodeActivityContext #18

brandon-hawbaker opened this issue Feb 1, 2016 · 0 comments

Comments

@brandon-hawbaker
Copy link

There's a generic bug where the base classes store an instance of the CodeActivityContext, rather than passing the context to every activity and method. Microsoft considers this coding unsupported and results in issues with VSO when running activities from multiple XAML builds running at the same time. These errors can occur if this isn't changed:

Exception Message: An Activity can only get the location of arguments which it owns. Activity 'GetLastGoodBuild' is trying to get the location of argument 'FailBuildOnError' which is owned by activity 'IsSourceChanged'. (type InvalidOperationException)
Exception Stack Trace: at System.Activities.RuntimeArgument.GetLocation(ActivityContext context)
at System.Activities.ActivityContext.GetValueCoreT
at TfsBuildExtensions.Activities.BaseCodeActivity1.LogBuildError(String errorMessage) at TfsBuildExtensions.Activities.BaseCodeActivity1.Execute(CodeActivityContext context)
at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant