Nplot is only available in. net1.1 and. net2.0 versions. problems may occur when used in. net4.0. The following is a solution.
Download NPLOT-0.9.10.0 source code.
Create a class library project in vs2010,
Delete automatically created CS file class1.cs
Copy all the files in the source code SRC folder to the file directory of the project and add these files to the project.
Try to compile it. There is an error.
Right-click reference and select Add reference.
Select the. NET folder, and add mongom. Drawing, system. windws. Form, and system. web space.
Compile the program again. If an error occurs, the system. Web. UI. design is not referenced, and a reference system. design is added to the solution.
Delete the CS file with a Web file name in the project, compile the file, and make an error. The duplicate XX feature is prompted,
Go to the project folder, move the assemblyinfo. CS file to the properties folder, and delete assemblyinfo. CS in the project.
There are still errors during compilation
Place the file NPlot-key.snk under the project directory
Open the file, comment out the last line, and the compilation is successful.
The successfully generated nplot. dll is displayed in the bin/debug folder, with a size of 160kb.
Select release. during compilation, the released version nplot. DL is displayed in Bin/release. The size is 142kb.
Copy the DLL and use nplot in the. net4.0 framework of C # windows.