rossmann-engineering / EEIP.NET

Ethernet/IP compatible library for .NET implementations
MIT License
214 stars 123 forks source link

Getting compilation error while running example given for Explicit and Implicit message or any .cs file #4

Closed rajatkmehta closed 6 years ago

rajatkmehta commented 6 years ago

I have downloaded dll from sourceforge.net then decompiled it. After that tried compile 'Program.cs' but getting compilation error.

error CS0246: The type or namespace name `Sres' could not be found. Are you missing an assembly reference?

Please guide me to run this program.

IlliniHiker commented 6 years ago

Download the whole EEIP.NET folder. It has the whole Visual Studio project.

rajatkmehta commented 6 years ago

@IlliniHiker can any one has the same code written in Python? If not, then tell me how we can run this library can be run on linux ?

IlliniHiker commented 6 years ago

I don't know of any Python implementations. You could convert this project to .NET Core and then it should run on Linux.

rossmann-engineering commented 6 years ago

Possibly the Java implementation is something you are looking for? You should be able run the Java implementation under linux. Converting to .NET Core could be a solution, but not that easy, because we use some Namespaces which are not supported by .NET core.

rajatkmehta commented 6 years ago

@rossmann-engineering @IlliniHiker I have installed Mono on linux to run EEIP.NET codes but while running Program.cs (available in Implicit Example), getting error related to "using Sres.Net.EEIP" as given below... Program.cs(2,7): error CS0246: The type or namespace name `Sres' could not be found. Are you missing an assembly reference? Compilation failed: 1 error(s), 0 warnings

Any idea why I am getting this on Mono, the same is working fine while running from visual studio on windows?

rossmann-engineering commented 6 years ago

The Namespace containing the library is "Sres.Net.EEIP".

If you downloaded the Visual Studio Project you should have that Namespace.

rajatkmehta commented 6 years ago

@rossmann-engineering Is this Sres.Net.EEIP generic library of .Net Frame work, because I am getting issue while compling from MONO in linux. A simple hello.cs file is compiling fine using mono. using System; -->working fine using Sres.Net.EEIP; -->not working on Mono (linux)

rajatkmehta commented 6 years ago

@rossmann-engineering In Java version of same library all CIP objects are not covered and there is no example for Implicit as well. But EEP.Net has covered every objects with both the Explicit/Implicit examples.

rossmann-engineering commented 6 years ago

The usage of Java and .NET Version is exactly the same

rossmann-engineering commented 6 years ago

http://eeip-library.de/codesamples-java/

rajatkmehta commented 6 years ago

@rossmann-engineering Only Assembly and Connection Manager objects are there, Identity Object, TCP/IP Object, Message Router Object are missing in java code.

Then how both are same?