>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only