Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VS08 use VS05 dll
Message
General information
Forum:
ASP.NET
Category:
Visual Studio
Miscellaneous
Thread ID:
01448974
Message ID:
01449350
Views:
32
>>Can I reference the same DLL in both VS2005 and VS2008?
>
>Yes as long as the runtime version that you compiled against matches or at least is backwards compatible with the linked application. So a .NET 3.5 application can always link to .NET 2.x runtime application, but vice versa may not work.

Are you sure that's true? I haven't tried it but if *both* versions of the framework are available then why would a .NET 1 app not be able to use a NET 3.5 assembly (assuming.of course, that the .Net 3.5 public interface didn't expose types that were not available in .NET 1) ?
Update: I see that you said 'may not work' so......

A .NET 2.0 application can also use a .NET 3.5 compiled assembly because .NET 3.5 is really .NET 2.0 plus libraries (more assemblies) as long as the code referenced by the 2.0 app doesn't use 3.5 features the 3.5 compiled assembly can be called from 2.0.
>
>.NET 4.0 will introduce a whole new runtime version, but it's still backwards compatible with 2.0 so no matter what referencing old assemblies should always work regardless of runtime version.
>
>Hope this helps,
>
>+++ Rick ---
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform