Visual Studio中的项模板 [英] Item Templates in Visual Studio
问题描述
我最近被分配了一项任务,即为Web项目创建一个项目模板,并嵌入到Visual Studio中,以便其他开发人员可以使用它。基本上它是一种通用模板,这意味着任何网站或Web应用程序都可以将它作为新项目添加到项目中。
我关注msdn上的博客他们确实有这方面的文章,但他们从现有项目创建项目模板。他们创建一个新的演示项目,选择他们想要添加为项目模板的文件,然后在选择演示项目时导出它们。我不需要特定项目的项目模板。我希望用户创建一个新的网站/ Web应用程序,然后将我的自定义项目模板添加为他们项目中的新项目。
请帮我解决这个问题.. 。
I have recently been assigned a task to create an Item Template for web projects and embed in Visual Studio so that other developers can use it. Basically its a sort of generic Template, meaning that any Website or Web Application can add it in their project as a new Item.
I am following the blogs on msdn they do have articles on this but they create item templates from existing projects. They create a new Demo Project, select files they want to add as item templates then export them while choosing the Demo project. I don''t need item templates for a specific project. I want the user to create a new website/web application then add my custom item template as a new item in their projects.
Please help me out on this...
推荐答案
我自己并没有尝试过,但这应该只是在正确的位置创建文件让VS拿起来。
如果您看一下:添加您的项目到Visual Studio默认文件 [ ^ ]和这里:为您经常使用的项目创建Visual Studio表单 [ ^ ]他们应该给你一个基本的想法 - 你必须玩一点,直到找到正确的文件夹,我怀疑!
I haven''t tried this myself, but it should be just a matter of creating the files in the right place for VS to pick up.
If you have a look here: Adding your items to Visual Studio default files[^] and here: Create Visual Studio forms for items you frequently use[^] they should give you the basic idea - you will have to "play" a bit until you find the right folders, I suspect!
这篇关于Visual Studio中的项模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!