Red Gate forums :: View topic - Using SDK in a 4.0 Environment
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

Using SDK in a 4.0 Environment

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
nhustak



Joined: 09 May 2006
Posts: 34

PostPosted: Sun Jan 16, 2011 3:47 pm    Post subject: Using SDK in a 4.0 Environment Reply with quote

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
Back to top
View user's profile Send private message
nhustak



Joined: 09 May 2006
Posts: 34

PostPosted: Sun Jan 16, 2011 4:10 pm    Post subject: Reply with quote

Doh. It appears you have to target 4.0 NOT 4.0 Client install. Interesting.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Mon Jan 17, 2011 4:34 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
nhustak



Joined: 09 May 2006
Posts: 34

PostPosted: Mon Jan 17, 2011 4:36 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1144
Location: My desk.

PostPosted: Mon Jan 17, 2011 4:43 pm    Post subject: Reply with quote

Ah, cool, thanks for that.

Let us know if you have any more trouble!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group