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
{{ message }}
Repository navigation
Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1 due to dependency on a non-strong named assembly #371
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for '<StartupCode$Plotly-NET>.$Defaults' threw an exception.
Source=Plotly.NET
StackTrace:
at Plotly.NET.Defaults.set_DefaultTemplate(Template value)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Test.Program.
(String[] args)
This exception was originally thrown at this call stack:
Inner Exception 1:
FileLoadException: Could not load file or assembly 'Giraffe.ViewEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
Please provide a succinct description of your issue.
Repro steps
Please provide the steps required to reproduce the problem
There is only one line of test code:
Defaults.DefaultTemplate = ChartTemplates.lightMirrored;
Expected behavior
Please provide a description of the behavior you expect.
Actual behavior
Please provide a description of the actual behavior you observe.
Known workarounds
Please provide a description of any known workarounds.
changed the title [-]Exception after updated to version 4.0.0 from version 3.0.1[/-][+]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1[/+]on Feb 27, 2023
Oh man, Giraffe.ViewEngine is not a strong named assembly 😢 This is the exact type of shit i hoped will not happen due to us adopting strong naming. Now i have to beg those maintainers to adopt strong naming too, or implement a view engine myself in this repo
changed the title [-]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1[/-][+]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1 due to dependency on a non-strong named assembly[/+]on Feb 28, 2023
Activity
kunjiangkun commentedon Feb 27, 2023
Not sure if it's related but the Giraffe.ViewEngine 1.4.0 release has version 1.0.0 in the DLL.
[-]Exception after updated to version 4.0.0 from version 3.0.1[/-][+]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1[/+]kMutagene commentedon Feb 28, 2023
Oh man, Giraffe.ViewEngine is not a strong named assembly 😢 This is the exact type of shit i hoped will not happen due to us adopting strong naming. Now i have to beg those maintainers to adopt strong naming too, or implement a view engine myself in this repo
kMutagene commentedon Feb 28, 2023
Thanks for reporting this though, i think there is not much you can do to make it work. I think there is something called binding redirects for netfx.
[-]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1[/-][+]Exception after updated Plotly.NET to version 4.0.0 from version 3.0.1 due to dependency on a non-strong named assembly[/+]kMutagene commentedon Apr 1, 2023
@kunjiangkun does adding https://github.com/dsplaisted/strongnamer to your solution resolve the issue?
kunjiangkun commentedon Apr 10, 2023
Adding strongnamer didn't solve the problem. Will stay on version 3.0.1 for now.
Add Tests for using Plotly.NET in a strong named environment (#371)
kMutagene commentedon Apr 13, 2023
fixed via 5cc0143, will be in the next release
Drop strong naming from Plotly.NET assemblies