Hi,
I am trying to debbug my project using visual studio and I get the following error:
An unhandled exception of type ‘System.MissingMethodException’ occurred in Unknown Module.
Additional information: Method not found: ‘System.Windows.Application Dynamo.Controls.DynamoView.MakeSandboxAndRun(System.String)’.
Any ideas how to fix this or any tutorial that explains a step by step process on how to set-up visual studio for debugging custom c# components inside Dynamo?
All the best,
-Miguel
Hi Miguel,
Whats the structure of your project like?
Did you download the Dynamo solution, add a new project to it, and then build, or is your project totally separate from Dynamo’s solution and you want to debug it IN Dynamo? We don’t have a tutorial on debugging Zero touch nodes right now as far as I know, and we should address that.
If your project is totally separate, then you need to open Dynamo, import your .dll using library import. You can then attach visual studio to Dynamo through attach process in the debug menu.
If your project is inside the Dynamo solution then you still need to import it manually like above (unless you added the node to some predefined class like core nodes or something like that), but now you can set DynamoSandbox as the startup project by right clicking on the that project in the solution browser in visual studio so that when you hit debug in Visual studio DynamoSandbox will open for you.
Hi Michael,
I am trying to run a project that it is totally separate. I downloaded Dynamo with Github. I compiled the latest version… I am not sure if this is the best way to go as the development of Dynamo is moving so fast.
I did manage to debug my component, visual studio was complaining that it could not find “LibG.AsmPreloader.Managed.dll”. I have fixed this and now it compiles and I am able to debug :).
As a side note you said the following : “If your project is totally separate, then you need to open Dynamo, import your .dll using library import. You can then attach visual studio to Dynamo through attach process in the debug menu”. This does not apply to Visual Studio Express. The feature was removed this needs to be added manually to the .csproj via a text editor (http://www.tristanchanning.com/work/blog/post/2011/12/5/visual-studio-express-debug-start-external-program)
Thanks again,
-Miguel
it was re- added to visual studio express 2013!!
Hi,
Trying to find out how to build my first new node. First went through the GitHub setup procedure. Forked the latest DynamoDS/Dynamo project and made a local copy. Opened it in Visual Studio 2013. Build it, and got 64 Errors and 23 warnings. Figured out that you have to run a custom tool by right clicking on AssemblySharedInfo.tt. Build again and the result was OK. Though many warnings about not being CLS compliant. But I guess that should not give a problem? Now I am trying to use an example for a new node. Found in the Library/Samples folder the HelloDynamo.cs file. Now my question is. How can I step into this file. Since it is a library you can not start it directly, as the warning says. One should make an executable file that references this class. What is the best way to do that?