Visual Studio 2010 and .NET 4.0

VS2003, VS2005, VS Express
tehrose
Phidgetsian
Posts: 7
Joined: Tue Aug 16, 2011 10:46 am
Contact:

Visual Studio 2010 and .NET 4.0

Postby tehrose » Tue Aug 16, 2011 10:51 am

Hello,

Is there anyone using Visual Studio 2010 and .NET 4.0? I don't believe it's possible but I'm wondering if anyone has been able to make it work.

I'm using the Phidgets Spatial 0/0/3 - 1049, but if you can get the libraries to work with 1 device it might work with another.

Thanks,
Cody

AdamS

Re: Visual Studio 2010 and .NET 4.0

Postby AdamS » Tue Aug 16, 2011 11:19 am

I don't see why it wouldn't work. You will just need to have .NET 3.5 also installed on the system alongside 4.0 to use the Phidget Libraries.

tehrose
Phidgetsian
Posts: 7
Joined: Tue Aug 16, 2011 10:46 am
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby tehrose » Tue Aug 16, 2011 11:34 am

Sure, but a project has a target .NET framework. And I'm wondering if the Accelerometer could work with 4.0.

Screenshot for reference
Attachments
framework.jpg
Changing the .NET framework in VS2010
framework.jpg (144.74 KiB) Viewed 3126 times

User avatar
Patrick
Lead Developer
Posts: 2922
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby Patrick » Tue Aug 16, 2011 11:38 am

The libraries are compatible with .NET 2.0 and 3.5.

-Patrick

tehrose
Phidgetsian
Posts: 7
Joined: Tue Aug 16, 2011 10:46 am
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby tehrose » Tue Aug 16, 2011 11:46 am

Thank you. Are there any future plans for 4.0 libraries?

Also, because the libraries are for 2.0 and 3.5 doesn't mean that it won't work in VS2010, correct?

User avatar
Patrick
Lead Developer
Posts: 2922
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby Patrick » Tue Aug 16, 2011 11:50 am

Right, 2010 works fine.

-Patrick

tehrose
Phidgetsian
Posts: 7
Joined: Tue Aug 16, 2011 10:46 am
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby tehrose » Tue Aug 16, 2011 12:07 pm

Any future plans for 4.0 libraries?

User avatar
Patrick
Lead Developer
Posts: 2922
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby Patrick » Tue Aug 16, 2011 3:09 pm

What feature of 4.0 would make it interesting enough for a dedicated library? I don't see Microsoft removing support for 2.0/3.5 development anytime soon...

-Patrick

tehrose
Phidgetsian
Posts: 7
Joined: Tue Aug 16, 2011 10:46 am
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby tehrose » Tue Aug 16, 2011 4:36 pm

Basically, the two pieces of hardware I'm working with (1049 included) do not work with the same .NET libraries. Also, I'm just asking if/when libraries for 4.0 will be available. Not trying to make a case for it.

Thanks for getting back to me.

iko79
Fresh meat
Posts: 4
Joined: Thu Apr 05, 2012 7:00 am
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby iko79 » Thu Apr 05, 2012 7:12 am

Hi,

I just tried to play around with phidgets for the first time and failed... Could anybody tell me how s/he got the C# libraries to work under .NET 4/MSVS 2010? Both installers I found so far [1, 2] told me they'd require .NET version 1.1.4322 and ask if I would like to obtain it from the web now. It does not matter what button I click, both close the installer. I tried to install older versions of .NET but haven't been successful.

Thanks,
iko


[1] http://grouplab.cpsc.ucalgary.ca/softwa ... v1_0_3.msi
[2] http://grouplab.cpsc.ucalgary.ca/softwa ... v1_3_5.msi


--- edit ---
Okay, I figured out that [1] has actually nothing to do with Phidgets at all.

The GroupLab.Phidgets.NET Library page [3] states that the library is deprecated. I should go to [4] and select the link for Shared Phidgets. Well, there is no "link for Shared Phidgets" -- anyway it is not recognizable as such. The only reasonable link is "Phidgets .NET", which leads to a site just containing a link to the deprecated beta again. I would appreciate some clarification on what is the most current and recommended version and how I can get it to work. Thanks!

[3] http://grouplab.cpsc.ucalgary.ca/software/phidgets/
[4] http://grouplab.cpsc.ucalgary.ca/software/

User avatar
Patrick
Lead Developer
Posts: 2922
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby Patrick » Thu Apr 05, 2012 9:05 am

Grouplab is definitely the wrong place to look for drivers - these at like 5-6 years old. Our current libraries work with .NET 3.5.

-Patrick

iko79
Fresh meat
Posts: 4
Joined: Thu Apr 05, 2012 7:00 am
Contact:

Re: Visual Studio 2010 and .NET 4.0

Postby iko79 » Fri Apr 06, 2012 2:34 am

Thanks for your your answer, Patrick.

I have no idea what the relation between Grouplab and Phidgets is/was, anyway I finally figured out what to do. It seems like a good idea to post the solution here for fellows running into the same problem in the future, and stumbling upon this thread, so here you are: you have to install the common drivers from [1] and then manually add the .NET assembly reference in your C# solution from the installation path (in the current version 2.1.8, it's called Phidget21.NET.dll), then you're ready to go. Also notice the Getting Started Guide, API Reference and samples at [2].

Generally, I would recommend updating the web sites I cited in my previous post above (if anybody responsible for the Grouplab sites reads this anyway) and to add some links, since they are the most promising google search results for "Pidgets programming in C#", and cause a lot of confusion for Phidget n00bs indeed.

Thanks and happy developing,
iko

[1] http://www.phidgets.com/drivers.php
[2] http://www.phidgets.com/programming_resources.php


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 1 guest