locked
VMSDK Lab 2 RRS feed

  • Question

  • I'm trying to build VMSDK_Lab_2, until step 28 everything works fine. "Transform All Templates" succeeded. But clicking on "Start without Debugging" ends with a lot of Errors in the files Shapes.cs and Diagram.cs.

    Error	45	Metadata file 'D:\projects\LanguageSMTest\Dsl\bin\Debug\Company.LanguageSMTest.Dsl.dll' could not be found	DslPackage
    Error	20	Invalid expression term ','	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	351	57	Dsl
    Error	23	Invalid expression term ','	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	352	25	Dsl
    Error	26	Invalid expression term ','	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	353	25	Dsl
    Error	32	Invalid expression term ','	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	359	56	Dsl
    Error	35	Invalid expression term ','	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	360	25	Dsl
    Error	38	Invalid expression term ','	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	361	25	Dsl
    Error	29	Invalid expression term ')'	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	354	25	Dsl
    Error	41	Invalid expression term ')'	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	362	25	Dsl
    Error	1	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	648	86	Dsl
    Error	2	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	655	86	Dsl
    Error	3	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	662	85	Dsl
    Error	4	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	669	85	Dsl
    Error	5	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	637	83	Dsl
    Error	6	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	642	82	Dsl
    Error	7	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	739	106	Dsl
    Error	8	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	744	105	Dsl
    Error	9	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	771	106	Dsl
    Error	10	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	776	105	Dsl
    Error	11	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	819	107	Dsl
    Error	12	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	824	107	Dsl
    Error	13	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	846	106	Dsl
    Error	14	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	851	106	Dsl
    Error	15	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	881	107	Dsl
    Error	16	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Diagram.cs	889	106	Dsl
    Error	17	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	392	82	Dsl
    Error	18	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	399	81	Dsl
    Error	21	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	351	57	Dsl
    Error	22	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	351	58	Dsl
    Error	24	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	352	25	Dsl
    Error	25	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	352	26	Dsl
    Error	27	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	353	25	Dsl
    Error	28	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	353	26	Dsl
    Error	30	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	354	25	Dsl
    Error	33	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	359	56	Dsl
    Error	34	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	359	57	Dsl
    Error	36	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	360	25	Dsl
    Error	37	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	360	26	Dsl
    Error	39	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	361	25	Dsl
    Error	40	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	361	26	Dsl
    Error	42	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	362	25	Dsl
    Error	43	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	392	82	Dsl
    Error	44	; expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	399	81	Dsl
    Error	19	) expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	351	50	Dsl
    Error	31	) expected	D:\projects\LanguageSMTest\Dsl\GeneratedCode\Shapes.cs	359	49	Dsl


    • Edited by TheHoff0 Friday, November 16, 2012 11:44 AM
    Friday, November 16, 2012 11:43 AM

Answers

  • It might be that you have an illegal character such as a space or nonalphanumeric in one of the names you've used in your DSL. Shapes.cs is generated from your DSL by the standard templates. Because it's generated simply by text substitution, an illegal character in a name can generate a syntax error in the generated code.

    Take a look at the file Dsl\GeneratedCode\Shapes.cs and see what's wrong with it.


    - Alan -MSFT

    Monday, December 10, 2012 11:40 AM

All replies

  • Hello.

    Which version of Visual Studio and the DSL Tools are you using?

    Regards


    Jean-Marc

    Wednesday, November 21, 2012 3:40 PM
  • I'm using Visual Studion 2010 Professional (Version 10.0.30319.1) and the DSL Tools 10.0.

    Wednesday, November 28, 2012 8:54 AM
  • and your problem is with the Lab that you downloaded from:

    http://code.msdn.microsoft.com/dsltoolslab ?

    That's working for me.


    Jean-Marc

    Monday, December 10, 2012 10:52 AM
  • It might be that you have an illegal character such as a space or nonalphanumeric in one of the names you've used in your DSL. Shapes.cs is generated from your DSL by the standard templates. Because it's generated simply by text substitution, an illegal character in a name can generate a syntax error in the generated code.

    Take a look at the file Dsl\GeneratedCode\Shapes.cs and see what's wrong with it.


    - Alan -MSFT

    Monday, December 10, 2012 11:40 AM