I'm trying to create a web application project template for everyone to use here at work that will minimize the amount of work that we have to do to create a new application with all our normal stuff, and I was thinking that it would be nice to do some setup stuff (add some records to a database) when the developer creates a new application (only if they tell it to), and I would like to do it through a dialog like the one that pops up for unit testing when you create a new ASP.Net MVC project. Is there any way to write a custom dialog that will pop up when you create a new project from the our custom project template? I'm assuming they're just using some public interface for the MVC unit testing dialog, right?
我正在尝试创建一个Web应用程序项目模板,供所有人在这里使用,这将最大限度地减少我们必须要做的工作量来创建一个包含所有常规内容的新应用程序,而且我认为它会很好当开发人员创建一个新的应用程序时(仅当他们告诉它时)做一些设置(向数据库添加一些记录),并且我想通过一个对话框来执行它,就像当你进行单元测试时弹出的对话框创建一个新的ASP.Net MVC项目。有没有办法编写一个自定义对话框,当您从我们的自定义项目模板创建一个新项目时,该对话框会弹出?我假设他们只是使用一些公共接口进行MVC单元测试对话,对吧?
We're still on Visual Studio 2005, though, so maybe something like that isn't supported until 2008?
我们仍然在Visual Studio 2005上,所以也许这样的东西直到2008年才得到支持?
1 个解决方案
#1
You're going to need a little VSX for this (Visual Studio Extensibility). Install the Visual Studio SDK and look for samples about the IWizard interface.
你需要一个小的VSX(Visual Studio Extensibility)。安装Visual Studio SDK并查找有关IWizard界面的示例。
That may be all you need. However, if you need a more extensive and powerful experience around custom creation of projects and project items, and easy addition of context-sensitive commands to Visual Studio, then take a look at the Guidance Automation Extensions and Guidance Automation Toolkit.
这可能就是你所需要的。但是,如果您需要有关项目和项目项目的自定义创建以及向Visual Studio轻松添加上下文相关命令的更广泛和强大的经验,那么请查看Guidance Automation Extensions和Guidance Automation Toolkit。
#1
You're going to need a little VSX for this (Visual Studio Extensibility). Install the Visual Studio SDK and look for samples about the IWizard interface.
你需要一个小的VSX(Visual Studio Extensibility)。安装Visual Studio SDK并查找有关IWizard界面的示例。
That may be all you need. However, if you need a more extensive and powerful experience around custom creation of projects and project items, and easy addition of context-sensitive commands to Visual Studio, then take a look at the Guidance Automation Extensions and Guidance Automation Toolkit.
这可能就是你所需要的。但是,如果您需要有关项目和项目项目的自定义创建以及向Visual Studio轻松添加上下文相关命令的更广泛和强大的经验,那么请查看Guidance Automation Extensions和Guidance Automation Toolkit。