[RESOLVED] C# conversion shows "system" error
Ok -- me again -- getting my head back into this (possible) vb.net to linux
process.
Alright, so I have Sharp develop installed and it loaded my VB project file fine.
Also, it converted it to C# in a flash -- couldn't be simpler, just do it from a pull down menu and click -- it even creates a myprojectconverted folder.
So then, I ran my program with sharp develop, just like I would with visual studio (run compiled exe) -- everything hunky dory.
I then opened my "converted" folder and opened the C# project -- it's all there, very cool -- can see the code differences in the Form1.cs
BUT --
getting errors that relate to the "system" namespace when I try to run
the C# version.
the errors are showing up on 2 lines --
using system; (no error on this line)
using.system.IO
using.system.IO.ports
the VB version, like I say is fine --
imports.system
imports.system.io
imports.system.io.ports
Please educate me on this one.
Thanks.
Re: C# conversion shows "system" error
something to do with serialport differences in vb.net and c#.net ?
Re: C# conversion shows "system" error
Quote:
Originally Posted by
mbarton
using system; (no error on this line)
using.system.IO
using.system.IO.ports
the VB version, like I say is fine --
imports.system
imports.system.io
imports.system.io.ports
Please educate me on this one.
Thanks.
There should be no dots between "using" and rest part of it.
e.g.
Code:
using system;
using system.IO;
using system.IO.ports;
Re: C# conversion shows "system" error
Yeah -- my mistake -- I put that in the post, they're not really in there.
Not familiar with C# but it looks like this may be a simple syntax thing.
I'll look closer and get back.
THANKS !
Re: C# conversion shows "system" error
Actually getting help on this in another post folks.
This thread closed.