How to create a new project type in VS2010?

后端 未结 2 1228
梦如初夏
梦如初夏 2021-02-02 17:35

I\'ve figured out how to create a new template, but I need a little more power than that. I need to override what happens when you click the \"Run\" button for example

相关标签:
2条回答
  • 2021-02-02 17:57

    What you want to do is create a project subtype / flavor. It will give you the control you need to customize this and other actions. But it is a fairly involved process that can't really be summed up in a SO answer box. But here's the main documentation page on the subject

    • http://msdn.microsoft.com/en-gb/library/bb166488(v=VS.80).aspx

    Please do post back with any road blocks you hit.

    0 讨论(0)
  • 2021-02-02 18:09

    Here's what I've found so far:

    • Download: Visual Studio 2010 SDK -- You need this to create a VSPackage (File > New Project > Other Project Types > Extensibility > Visual Studio Package)
    • Tutorial: A Simple Managed Project System
    • MSDN: Project Types
      • MSDN: Project Subtypes
    • Getting Started with Extending Visual Studio
      • Visual Studio SDK Projects
        • Walkthrough: Part 1 - Creating a Basic Project System
        • Walkthrough: Part 2 - Creating a Basic Project System
    0 讨论(0)
提交回复
热议问题