Cannot add DSL diagram into a Web Project

Hi,

Is there a reason why I cannot add a DSL diagram to a web project

I am developing a diagram that generates my WebPage and i would like to add it to a webproject .

Thanks.




Answer this question

Cannot add DSL diagram into a Web Project

  • bthumber

    Luiz,

    How about this: leave your DSL model and templates in the C# project; Add a Reference to the generated files in the web project. (Or the other way around.)

    Alan



  • Sonkit

    Hi Stuart

    Thanks for your answer, but this workaround is not completelly functional.

    When I copy the model file to my Webproject the VS2005 doesnt show the "Run Custom Tool" option for this file anymore. I need these option to generate my aspx files

    Is there any workaround

    Thanks



  • splyf

    I suspect it's because we only create VB and C# project item templates, so VS won't allow you to add an item to a different project type with these templates.

    The worksround is to add the item to a C# project, say, then copy the file into the web project.



  • Cannot add DSL diagram into a Web Project