Skip to content

Usage in .NET Core console applications #6

@abrasat

Description

@abrasat

The PLStream constructor throws an exception when called from a .NET Core 3.0 console application.

System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for 'PLplot.Native' threw an exception.
Source=PLplotNet
StackTrace:
at PLplot.Native.mkstrm(Int32& p_strm)
at PLplot.PLStream..ctor() in C:...\PLStream.cs:line 24
at SineWaves.Program.Main(String[] args) in C:...\Program.cs:line 56

Inner Exception 1:
InvalidOperationException: Cannot find support PLplot support files in System.String[].

If called from a .NET Core 2.0 console application it works fine. I tested with the SineWaves console application from the c# samples.

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