Answered Problem migrating DSL from VS2010 to VS2012RC

  • Tuesday, June 05, 2012 7:58 AM
     
     

    Hi!

    When I try to migrate and build a DSL from VS2010 to VS2012RC, I get the following error message:

    Error    4197    Alias 'VSTextTemplatingHost' not found    D:\Desktop\CSRML\DslPackage\GeneratedCode\Package.cs    388    3    DslPackage

    This error leads me to this line on Package.cs:

    [VSTextTemplatingHost::ProvideDirectiveProcessor(typeof(global::LoUISE.CSRML.CSRMLDirectiveProcessor), global::LoUISE.CSRML.CSRMLDirectiveProcessor.CSRMLDirectiveProcessorName, "A directive processor that provides access to CSRML files")]

    Can anybody help me?

    Thanks!



All Replies

  • Tuesday, June 05, 2012 2:20 PM
    Owner
     
     Proposed Answer

    Hello Miguel.

    did you use the DslProjectMigrationTool which is located under ~Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Tools\DSLTools ?

    Regards


    Jean-Marc

  • Tuesday, July 24, 2012 9:21 PM
     
     

    I too have this same issue, and I did you the DSLProjectMigrationTool..

    the converted DSL projects are perfect except for this same issue...

    Error    4197    Alias 'VSTextTemplatingHost' not found    D:\Desktop\CSRML\DslPackage\GeneratedCode\Package.cs    388    3    DslPackage

    This error leads me to this line on Package.cs:

    [VSTextTemplatingHost::ProvideDirectiveProcessor(typeof(global::LoUISE.CSRML.CSRMLDirectiveProcessor), global::LoUISE.CSRML.CSRMLDirectiveProcessor.CSRMLDirectiveProcessorName, "A directive processor that provides access to CSRML files")]


    Johnny Larue

  • Wednesday, September 19, 2012 10:17 AM
     
     
    Yes. I have just tried the same procedure with the RTM version of VS2012 and I'm still having the same problem. Could this problem be related to the use of ModelBus on my DSLs?
  • Thursday, September 20, 2012 11:39 AM
    Owner
     
     Answered

    Some migrated DSL projects exhibit the following issue: the DSL package project does not compile due to an error in the  DslPackage\GeneratedCode\Package.cs file caused by an undeclared namespace alias.

    Workaround:

    * open the file DslPackage\GeneratedCode\DslPackage.tt

    * replace the single occurrence of the text string "VSTextTemplatingHost::" with "global::Microsoft.VisualStudio.TextTemplating.VSHost."

    * run the custom tool to regenerate the Package.cs file.

    The project should now build correctly.

    Regards,

    Duncan