G
Guest
I have a quick question about asp.net 2.0 compile options.
Here's the scenario: I want to share some code among several websites on the
same server, but I don't want to precompile anything.
The classic ASP directory structure would look like this.
Physical files -> IIS Paths
c:\wwwroot\website1 -> http://website1
c:\wwwroot\website2 -> http://website2
c:\wwwroot\common -> <none>
c:\wwwroot\common -> http://website1/common
c:\wwwroot\common -> http://website2/common
Using this approach works fine in ASP.NET 2.0 until you need to use the
App_code directory.
I tried splitting up the common project like this.
c:\Common\<projectRoot>
c:\Common\App_Code\Base_App_Code
c:\Common\Common
Then I set up parallel virtual directories in the inheriting websites and
added the following to the config...
<compilation debug="true">
<codeSubDirectories>
<add directoryName="Base_App_Code"/>
</codeSubDirectories>
</compilation>
....but IIS/ASP.NET didn't like the fact that Base_App_Code was a virtual
directory (Application or plain)
Is there an alternate approach?
...Trigger an msbuild task with the compilation config section?
...Compile the common project with a custom build provider?
Here's the scenario: I want to share some code among several websites on the
same server, but I don't want to precompile anything.
The classic ASP directory structure would look like this.
Physical files -> IIS Paths
c:\wwwroot\website1 -> http://website1
c:\wwwroot\website2 -> http://website2
c:\wwwroot\common -> <none>
c:\wwwroot\common -> http://website1/common
c:\wwwroot\common -> http://website2/common
Using this approach works fine in ASP.NET 2.0 until you need to use the
App_code directory.
I tried splitting up the common project like this.
c:\Common\<projectRoot>
c:\Common\App_Code\Base_App_Code
c:\Common\Common
Then I set up parallel virtual directories in the inheriting websites and
added the following to the config...
<compilation debug="true">
<codeSubDirectories>
<add directoryName="Base_App_Code"/>
</codeSubDirectories>
</compilation>
....but IIS/ASP.NET didn't like the fact that Base_App_Code was a virtual
directory (Application or plain)
Is there an alternate approach?
...Trigger an msbuild task with the compilation config section?
...Compile the common project with a custom build provider?