You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I upgraded my plugin to .NET 8, the plugin fails to start and logs the following:
Unhandled Exception: System.InvalidOperationException: Type BarRaider.SdTools.Payloads.StreamDeckOptions appears to be immutable, but no constructor found to accept values.
at CommandLine.Core.InstanceBuilder.BuildImmutable[T](Type, Maybe`1, IEnumerable`1, IEnumerable`1, List`1)
at CommandLine.Core.InstanceBuilder.<>c__DisplayClass1_0`1.<Build>b__5()
at CommandLine.Core.InstanceBuilder.Build[T](Maybe`1, Func`3, IEnumerable`1, StringComparer, Boolean, CultureInfo, Boolean, Boolean, Boolean, IEnumerable`1)
at CommandLine.Parser.ParseArguments[T](IEnumerable`1)
at BarRaider.SdTools.SDWrapper.Run(String[], PluginActionId[], IUpdateHandler)
at Clockify.Program.Main(String[]) in D:\a\streamdeck-clockify\streamdeck-clockify\Clockify\Program.cs:line 9
When I upgraded my plugin to .NET 8, the plugin fails to start and logs the following:
Here's the relevant code:
It seems like some behavior with immutable types changed in .NET 8 which causes failures. When sticking to .NET 6, I'm not running into this issue.
The text was updated successfully, but these errors were encountered: