Skip to content

WpfPlot fails to load in Visual Studio when using .NET Framework #473

@bhairav-thakkar

Description

@bhairav-thakkar

Description
Upon trying to reproduce the plot as explained in CookBook, error is encountered when a wpfPlot control is added to the window xaml. The message reads: "Could not load file or assembly 'ScottPlot.WPF version 4.0.35, Culture=neutral' or one of its dependencies. The system can not find the file specified.".

This is a design-time error. When we run the program, it runs without errors,. While the program runs, the reporting of error in designer is annoying.

To Reproduce

Create a new visual studio wpf project. I used Visual Studio 2019 with .Net Framework 4.7.2. Add the control. Visual studio shows squiggly blue lines and you see the above mentioned error in tool tip text.

Screenshots
If applicable, add screenshots to help explain your problem

At design time, the control shows:
image

The error helper:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions