Hi,
When creating a DSL with VS 2005 Pro and the SDK 2006.09 I get following unexpected behavior:
- create a new DSL using the MinimalLang template
- transform the templates
- build and run (Debug)
after this a new VS window opens with my DSL, but when I double click on Sample.mydsl1in the solution explorer the XML file is opened and not the diagram design.
When I right-click on sample.mydsl1 and select Open with my newly created language is not listed as an option.
I guess something must be going wrong with the registration process in the exp hive.
I have de- and re- installed VS and the SDK, but still no luck.
any help would be greatly appreciated!
Thx,
Stef

DSL opens as XML
LTD
You can reregister your DSL package with the regpkg command. Run it from a console, use regpkg /help to display more infos about it.
Example: regpkg /root:Software\Microsoft\VisualStudio\8.0Exp <YourDSLPackageAssembly>.dll
Best regards
Christian
Liming22102
I realize this is an old topic, but as I was unable to find the solution in another place, I post my findings here. I was experiencing the same problem with VS2008 + SDK. While searching for an answer, I came across this topic and another one (http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=256978&SiteID=1). The other one stated the answer. I developed a very simple DSL on personal workstation. The solution is stored locally. The solution is then mirrored to a share (UNC), so I can access it from another system. But unless I copy the solution to a local disk there, I do not see any diagrams (only XML). The solution was to give Full Trust to the UNC. A description on how to do this is given here: http://msdn2.microsoft.com/en-us/library/bs2bkwxc(VS.80).aspx
gorla
I had the same problem. What worked for me is the following: navigate to the .mydsl1 file using the windows explorer and then open it directly with Visual Studio. For me, this opened the correct model editor. After that, the 'normal' route of opening the .mydsl1 file by hitting debug from my VS dsl solution and opening a test solution worked as well.
J.
Bigmo
msdate
Stef,
This looks like the package is not registered in the exp hive. Is there any build error in your IDE (not exp hive)
Thanks,
-Yu
Surit Roy
Hi,
I also have the problem that DSL opens as XML. I tried to reinstall VS2005 and the SDK, but still I have this problem.
Thanks
Alex
Pedro Ferreira
Hi Edward,
yes I do experience the same when going for the simplest example without any change of code.
Thanks
Alex
OTNS
MMCompton
Are you still working this Stef If so, what steps have you tried It does sound like the build or registration in the DslPackage project failed somewhere.
alexbot
Alex,
Do also you experience this problem when you create a new DSL based on, for example, the minimal Language template and run it immediately without modifying anything in it I am asking this because it is possible that "mistake" you made yourself in your custom DSL results in this behaviour.
Edward