Dear, I have an extension containing 4 different DSL's which I created a first version of back in VS2012. I've upgraded the extension each time a new VS version came out and now it's in VS2017. At first it was working but now I've done some more work on it and I get an "AdapterManagerNotRegisteredException" when making use of the ModelBus to create an adapter of another DSL in the extension:
Running transformation: Microsoft.VisualStudio.Modeling.Integration.AdapterManagerNotRegisteredException: DSL5030: An AdapterManager supporting LogicalAdapterId ... could not be found. at Microsoft.VisualStudio.Modeling.Integration.ModelBus.CreateAdapter(ModelBusReference reference, IServiceProvider serviceProvider) at Microsoft.VisualStudio.Modeling.Integration.ModelBus.CreateAdapter(ModelBusReference reference) at Microsoft.VisualStudio.TextTemplating1974C3A82A455614538A9633AB47D111513E01046BD903929F99C1D2FCAA92F369134967B6067F993F2BE2DB0ADDE871D5B11D0D515B3BEDD6968F52950A4DB1.GeneratedTextTransformation.TransformText()
This error is thrown in the template performing the transformation with the following code:
var model = ModelBus.CreateAdapter(Model.OtherModelRef);
When debugging there are 0 AdapterManagers registered in the ModelBus, though I would expect at least one to be registered as it was implemented (long time ago) as follows https://docs.microsoft.com/en-us/visualstudio/modeling/using-visual-studio-modelbus-in-a-text-template?view=vs-2017
I'm trying to figure out why now the AdapterManager is no longer being registered - the rest of my DSL designers are working and the AppDomain loaded assemblies show that the assembly containing the AdapterManager I need are there. Any idea how I can troubleshoot this best?
Kind regards,
Roel