| Author |
Message |
nhustak
Joined: 09 May 2006 Posts: 31
|
Posted: Sun Jan 16, 2011 3:47 pm Post subject: Using SDK in a 4.0 Environment |
|
|
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 |
|
 |
nhustak
Joined: 09 May 2006 Posts: 31
|
Posted: Sun Jan 16, 2011 4:10 pm Post subject: |
|
|
| Doh. It appears you have to target 4.0 NOT 4.0 Client install. Interesting. |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 840 Location: My desk.
|
Posted: Mon Jan 17, 2011 4:34 pm Post subject: |
|
|
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 |
|
 |
nhustak
Joined: 09 May 2006 Posts: 31
|
Posted: Mon Jan 17, 2011 4:36 pm Post subject: |
|
|
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 |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 840 Location: My desk.
|
Posted: Mon Jan 17, 2011 4:43 pm Post subject: |
|
|
Ah, cool, thanks for that.
Let us know if you have any more trouble! |
|
| Back to top |
|
 |
|
|
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