System.Exception: [AssetCompiler] Unhandled exception. Exception: InvalidOperationException: Two different classes have the same DataContract Alias [CameraInputSourceComponent]: VL.Stride.Input.CameraInputSourceComponent and VL.Stride.Input.CameraInputSourceComponent
I am using a camera into an render texture in stride, is this causing the issue?
This is an issue of Stride’s asset compiler. I’ve opened a PR addressing it. Hopefully it gets merged soon and Stride is open to push out another 4.0 release. Or we’ll have to reference a preview version of Stride which is not desirable.
As a side note - the version conflict which crashes the asset compiler comes from the VL.Video.MediaFoundation package. It references VL.Stride with version 0.9.x while latest previews use a higher version.
why can’t we just release a new VL.Video.MediaFoundation package with the appropriate version? or change the nuget reference in a way that it doesn’t install the old VL.Stride nuget, but expects it to be there and uses the latest version.
indeed, that uses an older nuget version… but we should in general try to have the packages that ship with vvvv gamma only as design time references. so that the external nugets don’t bring their own core packages.
It’s not about the nuget. The older VL.Stride version is not pulled into the compilation process. It’s about the assembly referencing VL.Stride.Runtime (VL.Video.MediaFoundation in that case). The assembly also stores the version of the referenced assembly. On assembly load the asset compiler tries to find that assembly by name and version, loads it into memory and runs its module constructor which in turn leads to registration of Stride serializers. Since the referenced version is different than what it has already loaded it “thinks” it needs to load and initialize the assembly again by loading the same thing from a different path and initializing it again. That leads to the above mentioned error.
Just pushed a new version of VL.Video.MediaFoundation referencing 2021.4 of VL.Stride. Upcoming builds (>= 104) will ship that version. Your export should work with those.