Hi guys,
Big noob here.
I'm trying to write my first script for sony vegas, and I am not finding a way to have Vegas open my script, both in debug and release versions.
I tried opening the script by running Vegas while in debug mode from Visual Studio, and by opening directly Vegas and open the dll. No success in any case.
When I open the script (tools-> scripting->run script -> my.dll ) I get this exception:
An error occurred during the executon of the script. Error 0x800700002
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File not found.
File name: 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at ScriptPortal.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
at ScriptPortal.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
I am not very expert on C# and .NET stuff, but I think it might be a compatibility problem with my Sony Vegas version and the .NET version I am using to build my script, because I found out that, by changing the version of .NET, the version of System.Runtime changes.
Here is some details:
- My Sony Vegas version is 21.0
- I tried building the scripts using .NET Core 3.1, .NET 5.0, and .NET 8.0 without success.
- My visual studio version rn is Visual Studio 22.
Is this a .NET version problem? If yes what would be the right .NET version to be used in order to build a script that is compatible with Vegas 21?
If it isn't a version problem... does anyone know how to fix this? :s
Thanks a lot in advance!