if someone try to convert to Core (my case .net6 core )
everything seem go smooth , but as soon as trying to open setting it will fail .
2 things need to be changed in the
CandleChartPropertiesWindow.xaml.cs
method : GetOverlayIndicatorTypes
- you can no longer scan the .exe for indicators , it will be cover by the dll of same name as .exe file
so remove the .exe from allowedExtensions
var allowedExtensions = new[] { ".dll"}; // the .exe file generated in a .NET Core 3.0 application is not an IL assembly
otherwise it will fail in this line :
Assembly asm = Assembly.LoadFile(asmPath)
this line InitializeComponent(); in the contructor will throw
System.Exception: 'The component 'FancyCandles.CandleChartPropertiesWindow' does not have a resource identified by the URI '/FancyCandles;component/candlechartpropertieswindow.xaml'.'
fix .
change Assembly asm = Assembly.LoadFile(asmPath) -> Assembly asm = Assembly.LoadFrom(asmPath)
if someone try to convert to Core (my case .net6 core )
everything seem go smooth , but as soon as trying to open setting it will fail .
2 things need to be changed in the
CandleChartPropertiesWindow.xaml.cs
method : GetOverlayIndicatorTypes
so remove the .exe from allowedExtensions
var allowedExtensions = new[] { ".dll"}; // the .exe file generated in a .NET Core 3.0 application is not an IL assembly
otherwise it will fail in this line :
Assembly asm = Assembly.LoadFile(asmPath)
this line InitializeComponent(); in the contructor will throw
System.Exception: 'The component 'FancyCandles.CandleChartPropertiesWindow' does not have a resource identified by the URI '/FancyCandles;component/candlechartpropertieswindow.xaml'.'
fix .
change Assembly asm = Assembly.LoadFile(asmPath) -> Assembly asm = Assembly.LoadFrom(asmPath)