问题
I'm trying to figure out how the Windows Workflow Foundation (WWF) template provided by default for builds in TFS specifies the Build process parameters in a build definition.
This should happen via the ProcessParameterMetadataCollection
and the ProcessParameterMetadata
contained therein. However nowhere in the DefaultTemplate.xaml are they specified. There's no Required category or Items to Build item anywhere, and none of the others circled in red either. See picture below.
I thought maybe they were specified in an attached workflow, alas my knowledge of WWF isn't that good and I can't find any attached workflows. Then I thought perhaps they might be specified in code as part of the build in activities. I have no idea, does anybody know?
回答1:
When you open up a build XAML file, near the bottom there are Variables, Arguments, and Imports links that you can click. If you click the Arguments link, this is where these exist. If they don't show up right away, it means you are out of the correct activity scope. If you click different activities in the build, you'll see the arguments list change. Here's a screenshot:
来源:https://stackoverflow.com/questions/14880740/missing-processparametermetadata-in-tfs-defaulttemplate-xaml-where-is-for-e-g