Using SDK in a 4.0 Environment

Automate and integrate using the SQL comparison API

Moderator: Chris Auckland

Using SDK in a 4.0 Environment

Postby nhustak » Sun Jan 16, 2011 3:47 pm

I'm having troulbe getting this to compile under .net 4.0. I know 2.0 DLLs are usable and I see that specific version isn't flagged on the DLLs. I've tried various permutations of this:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v2.0" />
<supportedRuntime version="v4.0" />
</startup>

none of which helps. Right now, the application will not see the Red Gate DLLS that I have added as a reference.

More importantly, where ARE the 4.0 DLLS? 4.0 has been out long enough I would expect them by now.

Regards,
Nick H
nhustak
 
Posts: 40
Joined: Tue May 09, 2006 8:06 pm

Postby nhustak » Sun Jan 16, 2011 4:10 pm

Doh. It appears you have to target 4.0 NOT 4.0 Client install. Interesting.
nhustak
 
Posts: 40
Joined: Tue May 09, 2006 8:06 pm

Postby james.billings » Mon Jan 17, 2011 4:34 pm

Seems so - I think the warning in the yellow box - http://msdn.microsoft.com/en-us/library/cc656912.aspx - relates to this. As the SDK assemblies aren't in the client profile you need to target the full-fat version.

Does it seem to work ok now?
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby nhustak » Mon Jan 17, 2011 4:36 pm

Yes that was the problem- I've put in a suggestion to Red Gate to add it to the 'getting started' on the SDK. It's subtle error and not easy to find based upon the error message - the application simply acts likes the DLL isn't in the reference list.

The way I found it was to create a brand new project- which defaulted to full .NET 4.0 luckily. When that worked I knew something in application configuration was wrong.
nhustak
 
Posts: 40
Joined: Tue May 09, 2006 8:06 pm

Postby james.billings » Mon Jan 17, 2011 4:43 pm

Ah, cool, thanks for that.

Let us know if you have any more trouble!
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.


Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests