Skip to content

Issues with migrate to Core #25

@kim-cph

Description

@kim-cph

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

  1. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions