Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 936
  • Last Modified:


hi im using visual studio 2003 and i believe using .net framework 1 however i need to use the System.IO.Ports class that is included into .net framework2

every time i try and compile my code in vs i get an error saying that .Ports is not recognised etc

is there a way to use the .net framework 2 and still use vs 2003 without upgrading vs to 2005


1 Solution
I'm sorry but I don't believe you can use .NET 2.0 framework with the Visual Studio 2003.  You can download the free version of Visual Studio Express 2005 at http://msdn.microsoft.com/vstudio/express/visualcsharp/download/
this should allow you access to the class you need.

andrew67Author Commented:
thanks but if thats the case i will just have to uninstall 2003 and install 2005.

i must admit it sounds a bit crap though, a bit like prescribed update oh yes and a big loss of money

Maybe you could get someone to create a COM wrapper for the System.IO.Port classes you need in 2005 you could call the 2005 component through the com wrapper from .NET 1/VS 2003 via interop - but you'd have to install both the custom com wrapper and the .NET framework 2.0 along with your app (and it's other dependencies, i.e .NET 1/1.1), and deal with the com/interop calls. Seems like a lot of work, but if you really don't want to upgrade your project to 2005 I think it's the only way.

andrew67Author Commented:
thanks but i think it will be easier to just use vs 2005
Hi. I have succesfuly used a product called SerialTools with VS 2003: http://franson.com/forum/forum.asp?FORUM_ID=15

Kaj Bromose

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now