I wrote a compiled script DLL for for Vegas 14 that contained several scripts in the same DLL. I just upgraded to Vegas 15 and it seems that my old code is not being recognized as a valid DLL. I can't hit any breakpoints and get an error when I try to run something. I found some articles talking about VSA versus CodeDOM. I added a method called EntryPoint to my code, which does the "Hello World" pop-up and it works. But, I am not getting any breakpoints anywhere else. Seems like I am using the wrong architecture/programming model.
Below is my old code that does not run (except for the added EntryPoint method). What am I missing?
using ScriptPortal.Vegas;
namespace RogerVegas
{
public class RogerVegasModule : ICustomCommandModule
{
protected Vegas vegas = null;
String outputFilePath = @"d:\videos\India";
enum RenderMode
{
Project = 0,
Selection,
Regions,
}
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
MessageBox.Show("hello world");
}
}
public void InitializeModule(Vegas _vegas) {
vegas = _vegas;
}
public ICollection GetCustomCommands()
{
CustomCommand cmdOverlayAll = new CustomCommand(CommandCategory.Tools, "Overlay Events");
cmdOverlayAll.DisplayName = "Overlay Events";
cmdOverlayAll.Invoked += this.hndOverlayEvents;
...(more code follows, but not important for post)