Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Q: Possible to change ASP.NET's page compilation behavior?

 
Thread Tools Search this Thread
Old 06-09-2004, 10:55 PM   #1
Default Q: Possible to change ASP.NET's page compilation behavior?


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
  Reply With Quote
Old 06-10-2004, 08:38 AM   #2
Natty Gur
 
Posts: n/a
Default Re: Q: Possible to change ASP.NET's page compilation behavior?
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
  Reply With Quote
Old 06-10-2004, 02:29 PM   #3
Jiho Han
 
Posts: n/a
Default Re: Q: Possible to change ASP.NET's page compilation behavior?
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46