我想开始使用 Visual Studio 2010 SDK 并创建集成包。我现在想做的就是提供新的项目类型和语言服务。但是,我不知道应该如何设计它...
该软件包将为为 x86 或 ARM 处理器编译的编程语言提供一个编辑器。问题在于,根据您所开发的处理器的不同,存在一些语言差异。然而,我不希望每个架构都有一个单独的项目类型。优选地,程序员在创建项目时选择架构,并且包自动加载特定部分,例如正确的语言服务、配置设置以及与该架构相关联的任何自定义工具和对话框。
我该怎么做呢?我读过有关“风味项目”的内容,但我不太明白如何实施它们。这就是我需要的吗?
I'd like to get started with the Visual Studio 2010 SDK and creating integration packages. All I would like to do for now is provide a new project type and language service. However, I don't know how I should design it...
The package will provide an editor for a programming language that compiles for x86 or ARM processors. The problem is that there are a few language differences depending on which processor you're developing for. I'd rather not have a separate project type for each architecture, however. Preferably, the programmer chooses the architecture when they create the project and the package automatically loads up the specific parts such as the correct language service, configuration settings, and whatever custom tools and dialogs are associated with that architecture.
How would I go about doing this? I've read about "flavored projects", but I don't really understand how to implement them. Is that what I need?
发布评论
评论(2)
为了让您朝着正确的方向前进,需要注意以下几点:
A couple of points to note to get you headed in the right direction:
我正在做一些非常相似的事情——这是我的起点:
http://blogs.msdn.com/noahric/archive/2010/02/15/markdown-part-4-outlined.aspx
这是一个非常好的示例,说明如何实现编辑器扩展。
I'm working on something very similar -- here is my starting point:
http://blogs.msdn.com/noahric/archive/2010/02/15/markdown-part-4-outlining.aspx
It's a very nice example of how to implement an editor extension.