Hi All,
I have created net standard DLL (not a dot net framework) and I am trying to use it in the java application. but while execute build.cmd command i am getting below error
"The type 'System.Object' is defined in an assembly
that is not referenced. You must add a reference to assembly 'netstandard,"
can anyone please help me what is the solution for that?
Please see the below error message.
Note: I can call Dot Net framework DLL in the java application successfully.
D:\Java\Java_JNI_Lib\bin>.\proxygen.exe "D:\CSharp Code\DotNetStandarLib\DotNetStandarLib\bin\Debug\netstandard2.0\DotNetStandarLib.dll" -wd "D:\Java\Standard"
jni4net.proxygen - Copyright (C) 2009 Pavel Savara - licensed under GPLv3
will generate JVM dotnetstandarlib.mymathclass
proxygen done
D:\Java\Java_JNI_Lib\bin>cd D:\Java\Standard
D:\Java\Standard>.\build.cmd
compile classes
DotNetStandarLib.j4n.jar
DotNetStandarLib.j4n.dll
clr\dotnetstandarlib\MyMathClass.generated.cs(28,35): error CS0012: The type 'System.Object' is defined in an assembly
that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51'.
d:\CSharp Code\DotNetStandarLib\DotNetStandarLib\bin\Debug\netstandard2.0\DotNetStandarLib.dll: (Location of symbol
related to previous error)
Thank you
Ashok