从模板执行操作 [英] Executing actions from templates

查看:68
本文介绍了从模板执行操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了动作(源自Microsoft.Practices.RecipeFramework.Action)。是否可以从vstemplate执行这些操作?

谢谢,
Dhawal


解决方案

您可以从VS模板和食谱执行食谱包含一个或多个动作。因此,您可以将所需的操作包装到配方中,并从VS模板中引用此配方,这将在每次展开VS模板时执行您的操作。

HTH,
-vga。


I have written Actions(deriving from Microsoft.Practices.RecipeFramework.Action) . Is it possible to execute these actions from a vstemplate?

Thanks,
Dhawal


解决方案

You can execute Recipes from VS Templates and Recipes do contain one or more Actions. So you can wrap up the action you want into a Recipe and reference this Recipe from the VS Template, that will get your action executed everytime the VS Template is unfolded.

HTH,
-vga.


这篇关于从模板执行操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆