孤立壳中的Modelbus(VS2012) [英] Modelbus in Isolated shell (VS2012)

查看:67
本文介绍了孤立壳中的Modelbus(VS2012)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


当我在隔离的shell环境中使用我的DSL时,无法解析modelbus引用。我在Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll中发生了"Microsoft.VisualStudio.Modeling.Integration.AdapterManagerNotRegisteredException"。
例外。


我已经将以下MEF组件包含在我的隔离shell环境中:



  • DSL包项目
  • DSL项目
  • ModelBusApapter项目
  • Microsoft.VisualStudio.Modeling.SDK.Integration.Shell.11.0.dll
  • Microsoft .VisualStudio.Modeling.SDK.Integration.11.0.dll


Nils















解决方案

Hello Nils。


我正在尝试重新解决您的问题,但我需要更多信息才能更好地了解你做了什么:


1。你有没有添加到你的ShellExtensionsVSIX / source.extension.vsixmanifest:



  • < span style ="font-family:'Verdana','sans-serif'; font-size:9pt">项目,     Microsoft.VisualStudio.VsPackage,DslPackage; PkgdefProjectOutputGroup
  • 项目,     Microsoft.VisualStudio.MefComponent,ModelBusAdapters
  • 项目,     Microsoft.VisualStudio.ItemTemplate,DslPackage; TemplateProjectOutputGroup

2。如何将DSL文件(假设您的扩展名为.myDslExtension文件)添加到您的隔离shell中?您是否创建了特殊项目类型?
并且您是否更改了DslPackage \ ProjectItemTemplates中的.tt文件:它们为CSharp和Vb生成了未包含在隔离shell中的项目模板?


< p style ="line-height:normal; margin-bottom:12pt"> 3。如果我添加一个空的.myDslExtension文件,并在隔离的shell中打开它,我可以添加模型元素并保存,但是当我尝试编辑ModelBus类型的属性
时,选择器对话框告诉我它无法打开我选择的型号。我没有任何例外。你怎么得到你的例外?


问候


Hello,

When I use my DSL in a isolated shell environment the modelbus references couldn't be resolved. I get a "Microsoft.VisualStudio.Modeling.Integration.AdapterManagerNotRegisteredException' occurred in Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll" exception.

I already have included the following MEF components to my Isolated shell environment:

  • DSL package project
  • DSL project
  • ModelBusApapter project
  • Microsoft.VisualStudio.Modeling.SDK.Integration.Shell.11.0.dll
  • Microsoft.VisualStudio.Modeling.SDK.Integration.11.0.dll

Nils




解决方案

Hello Nils.

I'm trying to repro your problem, but I would need more information to understand better what you did:

1. Did you add to your ShellExtensionsVSIX/source.extension.vsixmanifest:

  • Project,      Microsoft.VisualStudio.VsPackage, DslPackage;PkgdefProjectOutputGroup
  • Project,      Microsoft.VisualStudio.MefComponent, ModelBusAdapters
  • Project,      Microsoft.VisualStudio.ItemTemplate, DslPackage;TemplateProjectOutputGroup

2. How can you add DSL files (let's say your extension is .myDslExtension file) to your isolated shell ? Did you create a special project type? and did you change the  .tt files in DslPackage\ProjectItemTemplates : they generate item templates for CSharp and Vb which are not included in the isolated shell?

3. If I add an empty .myDslExtension file, and open it in the isolated shell, I can add model elements, and save, but when I try to edit a property of type ModelBus reference, the picker dialog tells me that it cannot open the model that I choose. I don’t get any exception. How do you get your exception?

Regards


这篇关于孤立壳中的Modelbus(VS2012)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆