R – Any way to use ADO.NET Data Services 1.5 CTP2 with VS2010? Even manually

astoriavisual studio 2010wcf-data-services

For various reasons I have clean installed my dev box and it is running Win7 x64 and currently has VS2010 installed. I am maintaining several projects that require the use of the 1.5 CTP2 release services, under .net 3.5 (obviously). I have already taken the steps needed to install the full 1.5 CTP2 under Win7.

While I understand that the wizard style tooling that normally runs in VS2008 is not available (at least, I think it isn't?) I am hoping that temporarily I can get by with using the command line tools to tide me over till then so I don't need to keep round tripping into the VS2008 VM I keep handy.

I need to do the normal things…

  • Create a service and the web.config entries to enable it

  • Create or update a service reference in a Silverlight project

  • Create or update a service reference in a WPF project

Again, command line is OK – I obviously don't need to do this very often.

Thanks!

Ken

Best Answer

You need to make sure the System.Data.Services.Design.dll are updated and installed in the gac (if you're on Windows 7):

http://wildermuth.com/2009/05/29/Running_ADO_NET_Data_Services_1_5_CTP1_on_Windows_7

Additionally, when you run visual studio, you need to specify some environment variables to make it work. I do this with a batch file:

set dscodegen_usedsc=1
set dscodegen_version=2.0
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv"

Once you do that, you can continue to to "Add Service Reference" and get the CTP2 proxies.