![]() |
|
|
|||||||
![]() |
ASP Net - Q: Possible to change ASP.NET's page compilation behavior? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I was wondering whether it was possible to change the default ASP.NET
compilation behavior. I know that there is <compilation> element in the config where you can specify quite a few things including the compiler options, assemblies to link, etc. However, I can't seem to find a way to have the compiler add/use certain path to locate the dlls. I tried setting compilerOptions attribute of the <compiler> element (compilerOptions="/lib:c:\sompath") but that doesn't seem to work either. Having the <probing> element specify where to find assemblies at runtime is very nice. I wish there was a similar facility for specifying locations to search for during compile time. Does anyone know of a way to do this? Thanks Jiho Han |
|
|
|
|
#2 |
|
Posts: n/a
|
Hi,
I think you after <assemblies> tag inside compilation. http://msdn.microsoft.com/library/de.../en-us/cpgenre f/html/gngrfassemblies.asp Out of curiosity i'll be happy to hear way you need to use this tag. Natty Gur[MVP] blog : http://weblogs.asp.net/ngur Mobile: +972-(0)52-8888377 *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! Natty Gur |
|
|
|
#3 |
|
Posts: n/a
|
Hi Natty,
Thanks for the response. However, I already looked into the <assemblies> element and I don't think it's going to work. To satisfy your curiosity, this is what I am trying to do. In my ASP.NET application, I have a bunch of subfolders that basically represent different modules/add-ons. These folders are underneath a common folder that contains resources and assemblies that they all use. And finally the common folder is located in the application root. Normally, all assemblies will be located in the application bin folder. I am trying, however, to place assemblies in different place under the application root. My common assemblies will be in the common folder's bin folder and each module specific assemblies under their own bin folder. I can achieve this by using <probing> element but the <probing> element only works during runtime. At compile time, ASP.NET looks only in the application bin folder for its references, namely the dlls that contain codebehind classes for the pages. <assemblies> doesn't seem like it's going to work because you can only specify the assembly name or *, which would look under application bin folder anyway. So if you know of a way to achieve what I am trying to, please don't hesistate to let me know. Thanks much. Jiho "Natty Gur" <> wrote in message news:... > Hi, > > > I think you after <assemblies> tag inside compilation. > http://msdn.microsoft.com/library/de...assemblies.asp > > Out of curiosity i'll be happy to hear way you need to use this tag. > Natty Gur[MVP] > > blog : http://weblogs.asp.net/ngur > Mobile: +972-(0)52-8888377 > > > *** Sent via Devdex http://www.devdex.com *** > Don't just participate in USENET...get rewarded for it! Jiho Han |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| master page does not change due to preinit event not firing | franchise63 | General Help Related Topics | 0 | 02-13-2008 09:18 AM |
| .aspx page apears minimized when pops up | sam.dev | Software | 3 | 02-04-2008 03:04 PM |
| Back button doesn't work when it is a secure page returning to a non secure page | Miss Mary | General Help Related Topics | 1 | 09-21-2007 10:32 AM |
| master page & app_theme folder doesn't work | dummies2 | General Help Related Topics | 0 | 09-04-2007 05:41 PM |
| Clear the Session value on page unload | tessythampan | Software | 1 | 08-12-2006 12:18 PM |