Hello, please tell me what am I doing wrong?

  • I import the library as "Add> link"

  • .Net Versions Match

  • Started with debugging and without debugging, the result is the same

Code :

using org.mariuszgromada.math.mxparser; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MathLinearParser { class Program { static void Main(string[] args) { Expression e = new Expression("2-(32-4)/(23+4/5)-(2-4)*(4+6-98.2)+4"); mXparser.consolePrintln("Res: " + e.getExpressionString() + " = " + e.calculate()); } } } 

Exception :

Unhandled exception: System.IO.FileNotFoundException: Failed to load file or assembly "MathParser.org-mXparser.Net46, Version = 4.1.1.0, Culture = neutral, PublicKeyToken = 0fbab7add73ed6e2" or one of their dependencies. Cannot find the specified file.

    1 answer 1

    I can offer the following options:

    1. Install the library into the project via NuGet
    2. Download the sources and add them to the project as a dependent project (get two projects in the solution and put a link to the internal project.

    For it was not possible to reproduce your mistake.

    And write your system and IDE.

    • Windows 10, Microsoft Visual Studio Enterprise 2015 - alex-rudenkiy
    • Were you able to pick it up from the nugget? - Dejsving
    • I went into the package manager and for five minutes I’m twisting the list, I can’t find this package - alex-rudenkiy
    • It is not in the package manager. This package is not made by Microsoft. It must be sought in NuGet. In the project menu, select "Package Management NuGet" - Dejsving
    • That's it, thanks: D - alex-rudenkiy