Warren Tang said:
Hi John
Now I understand the 3.5 more. Thanks for the explanation.
Let me explain more about the scenario I am facing. I am going to extend
an existing ASP.NET 2.0 web application (say Project A). In order to keep
the existing things intact, I decided to create a new Web Application
project (say Project B), and place it in a subfolder of Project A. (What I
mean is that all the aspx files of App B are placed in the subfolder,
while the assembly of App B is put into the root bin folder.)
Here is the file hierarchy:
--Root (Project A, built in ASP.NET 2.0, is a virtual directory in IIS)
----bin for project A binaries
----web.config
----Subfolder (Project B, built in ASP.NET 3.5) bin for project B binaries
------web.config
There's no reason you can't make project B a separate web application.
Furthermore, you should just build the whole thing against .NET 3.5. Then,
all of the assemblies you currently reference in ASP.NET 2.0 will continue
to be .NET 2.0 code. It won't make any difference at all, unless it turns
out that you're depending on something that was a bug in .NET 2.0 but that
has been fixed in one of the service packs.
Remember that .NET 3.5 doesn't replace any of the .NET 2.0 code, except that
it installs a service pack, .NET 2.0 SP2. So you're not going to have some
code that's built in ASP.NET 2.0. _ALL_ of your code will be built on .NET
2.0 unless you decide to use a new feature. You would access the new feature
by adding a reference to the assembly that defines the new feature. It's no
magic - it's just as though the new feature came from a third party and you
added a reference to their library. Adding a new library doesn't change
which .NET version your code is using; neither will installing .NET 3.5.