As titles says, Im trying to publish one of the components from github so I can use it without Visual Studio. First, when I tried publishing I got the same problem as everyone else, and that’s could not find file ImageViewerDotNet.dll and AudioPlayerDotNet.dll. I found those dependencies in code and deleted then and program published, but when I run it I get following error
Unhandled Exception: System.TypeInitializationException: The type initializer for ‘VideoOS.Platform.SDK.Environment’ threw an exception. —> Autofac.Core.DependencyResolutionException: An exception was thrown while activating VideoOS.Platform.SDK.EnvironmentService → VideoOS.Platform.SDK.Platform.SDKEnvironmentManager. —> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor ‘Void .ctor()’ on type ‘SDKEnvironmentManager’. —> System.IO.FileNotFoundException: Could not load file or assembly ‘VideoOS.IdentityServer.Common, Version=24.1.0.0, Culture=neutral, PublicKeyToken=bc60fba4a7969f89’ or one of its dependencies. The system cannot find the file specified.
at VideoOS.Platform.SDK.Server.ConnectionCheck..ctor()
at VideoOS.Platform.SDK.Config.SiteInfoManager..ctor()
at VideoOS.Platform.SDK.Platform.SDKEnvironmentManager..ctor()
at lambda_method(Closure , Object[] )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
— End of inner exception stack trace —
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)
— End of inner exception stack trace —
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget)
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at VideoOS.Platform.SDK.Environment.RecreateContainer()
at VideoOS.Platform.SDK.Environment..cctor()
I also tried publishing Gui app and it just crashes instantly