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!
- Edited by Miguel A. Teruel Tuesday, June 05, 2012 7:59 AM
- Edited by Miguel A. Teruel Tuesday, June 05, 2012 8:04 AM
All Replies
-
Tuesday, June 05, 2012 2:20 PMOwner
Hello Miguel.
did you use the DslProjectMigrationTool which is located under ~Microsoft Visual Studio 11.0\VSSDK\VisualStudioIntegration\Tools\DSLTools ?
Regards
Jean-Marc
- Proposed As Answer by Jean-Marc PrieurMicrosoft Employee, Owner Tuesday, June 05, 2012 2:20 PM
- Marked As Answer by Jean-Marc PrieurMicrosoft Employee, Owner Monday, June 11, 2012 12:59 PM
- Unmarked As Answer by DuncanPMicrosoft Employee, Owner Thursday, September 20, 2012 11:36 AM
-
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 AMYes. 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 AMOwner
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
- Marked As Answer by Miguel A. Teruel Thursday, September 20, 2012 11:42 AM

