Plugin fails when class inherits referenced class

ingvarai wrote on 6/14/2015, 1:52 AM
Hi, I cannot find out about this. Can you?
I try to inherit from a class in an external referenced assembly.

namespace LocalProject
{
public class Foo : ReferencedAssembly.Bar
{
}
}

Having this simple code added to my project, the plugin won't load, it does not appear at all.
Just removing this simple code again, will make it reappear again in Vegas.
Everything is built for Any CPU, in Visual Studio 2013.
If someone can help me make a step forward here, I would be happy! Because this "phenomenon" is making me (almost literally) sick.

-Ingvar

Comments

Gary James wrote on 6/14/2015, 2:14 PM
Have you added a reference to your Referenced Assembly by right-clicking on the project Reference node and selecting Add Reference? Then don't forget to add a "Using" statement to bring your referenced assembly namespace into your project.

Gary James wrote on 6/14/2015, 2:18 PM
One other thing. If you're trying to Inherit from a Sony Vegas class, it may not work for some of the classes. I believe some of the Sony classes are sealed, preventing a script or extension inheriting from them.
ingvarai wrote on 6/14/2015, 4:43 PM
Thank you Gary for responding!
Now, it would not even compile if the cause was one, or both, of what you suggest.
It is all about loading the assemblies in alphabetic order,it seems. Can anyone confirm this?

-Ingvar