
69developer
USA
Asked
— Edited

I have been reading and playing around with the SDK, was able to get the servo example to run in VB.net but can not in C#.
EZB_Connect does not exist in the namespace 'EZ_B'.
I double checked to make sure the reference was there.
Also, in the readme documentation, it says .Net Framework v4, I had to set it at 4.5 in order to get the VB sample to run.
I have the reference and also copied all the files to the Output folder.
Don't know which part I did wrong? The VB version runs no problems, once I changed the framework from 4 to 4.5.
So I re-read the file and still cant get the C# version to work.
@justinRatliff, does the C# servo example work for you ok?
1) Expand the REFERENCES tree on the project that you wish to compile
2) Remove (Delete) the EZ-B reference with a ! (exclamation) beside it
3) Right click and select ADD REFERENCE
4) Browse to the EZB.DLL and select it
5) Also, it's a good idea to select all of the files in the EZ-B .Net Folder and add them to your project. Select that they are a "content" type and to be copied when building.
I took a quick look again, and it didn't work.
Quesitons:
1) Is it Framework V4 per the readme documentation or is it V4.5?
2) What is the difference between EZ-B and EZ_B ?
3) Any idea why the VB servo version works fine and the C# one dosnt?
4) I have added many, many references in the past and never ran into this exact problem, so it has me confused?
5) So if you followed the exact steps in the readme documentation, the C# servo example worked for you?
1) The framework is 4.5. Does the readme say 4? I'll have to change that
2) There is only EZ_B.DLL and you need to add a reference to it
3) I'm unable to speak on behalf of Microsoft Visual Studio's bugs
4) Some projects will require references, others won't. It depends on what visual studio decides to do when the project is loaded on another computer
5) Every time ARC is compiled during development, it also compiles every tutorial as well. This ensures all of my tests are working. Every tutorial is a unit test for the EZ_B.dll
What is the exact project name that you are loading?
Test - Servo
Anyway you can zip one of the projects that will work so I can see what all is being changed/added in the properties?
Had to also:
--Build Menu---Configuration Manager----Change active solution to x86 and the project platform to x86 and build checked.