...
首页> 外文期刊>MSDN Magazine >Create Reusable Project And Item Templates For Your Development Team
【24h】

Create Reusable Project And Item Templates For Your Development Team

机译:为您的开发团队创建可重复使用的项目和项目模板

获取原文
获取原文并翻译 | 示例
           

摘要

Over my years of working with clients on building Microsoft~®.NET Framework-based applications, I have often heard a common feature request for Visual Studio~®.NET: "It would be great if we could create our own project types and item types so that all developers in our organization would have access to them." Many orgs want to create shared templates for projects such as Web sites or for project items, such as a default Web page or forms. Visual Studio 2005 introduces a new model for defining templates and starter kits for projects and items that make this not only possible, but relatively simple. I'll take a look at how to consume, create, and customize these templates. In the past, users have been able to create project or item templates, but it took a lot of inside knowledge of arcane text file formats, JavaScript files, and folder naming conventions, as well as a little bit of magic, to make it work. With the new model, a user can create a simple ZIP file of the items to be included in the template and an XML metadata file that describes the template and its contents. This new model supports creating item templates such as a Web page, a C# or Visual Basic~® code file, or a configuration file. It also supports single-project templates like Web sites, class libraries, or smart client applications, as well as multiproject solutions. In fact, most of the built-in project and item templates that you use to create new solutions in Visual Studio 2005 are based on this same template mechanism.
机译:在与客户合作构建基于Microsoft〜.NET Framework的应用程序的多年中,我经常听到对Visual Studio〜.NET的共同要求:“如果能够创建自己的项目类型和项目,那就太好了。类型,以便我们组织中的所有开发人员都可以访问它们。”许多组织希望为网站等项目或项目项(如默认网页或表单)创建共享模板。 Visual Studio 2005引入了一个新模型,用于为项目和项目定义模板和入门工具包,这不仅使这成为可能,而且相对简单。我将看一下如何使用,创建和自定义这些模板。过去,用户可以创建项目或项目模板,但要使它正常工作,需要大量的内部知识,这些内容包括奥秘的文本文件格式,JavaScript文件和文件夹命名约定,以及一些魔术知识。 。使用新模型,用户可以创建要包含在模板中的项目的简单ZIP文件以及描述模板及其内容的XML元数据文件。此新模型​​支持创建项目模板,例如网页,C#或Visual Basic〜®代码文件或配置文件。它还支持网站,类库或智能客户端应用程序等单项目模板,以及多项目解决方案。实际上,用于在Visual Studio 2005中创建新解决方案的大多数内置项目和项目模板都是基于相同的模板机制。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号