[Mono-list] asp.net mod_mono reference question

Dustin Aleksiuk DAleksiu at thoughtworks.com
Sat May 21 03:32:57 EDT 2005

Hi Jesse,

I'm aware of that flag, but I'm talking about the compilation of the 
aspx.cs file that mod_mono does when it gets a page request. From what I 
read, it compiles the aspx.cs files at that time (and that works fine if I 
remove the code that tries to use my DLL). I don't know how to pass it 
command-line flags since mod_mono invokes the compiler, not me.

Is there something fundamental I'm missing about mod_mono?


"Jesse Pasichnyk" <jesse at pasichnyk.net> 
21/05/2005 00:07

"'Dustin Aleksiuk'" <DAleksiu at thoughtworks.com>, 
<mono-list at lists.ximian.com>

RE: [Mono-list] asp.net mod_mono reference question

-r MyCustomAssembly.dll
Mono C# compiler, (C) 2001 - 2003 Ximian, Inc.
mcs [options] source-files
   --about            About the Mono C# compiler
   -addmodule:MODULE  Adds the module to the generated assembly
   -checked[+|-]      Set default context to checked
   -codepage:ID       Sets code page to the one in ID (number, utf8, 
   -clscheck[+|-]     Disables CLS Compliance verifications
   -define:S1[;S2]    Defines one or more symbols (short: /d:)
   -debug[+|-], -g    Generate debugging information
   -delaysign[+|-]    Only insert the public key into the assembly (no 
   -doc:FILE          XML Documentation file to generate
   -keycontainer:NAME The key pair container used to strongname the 
   -keyfile:FILE      The strongname key file used to strongname the 
   -langversion:TEXT  Specifies language version modes: ISO-1 or Default
   -lib:PATH1,PATH2   Adds the paths to the assembly link path
   -main:class        Specified the class that contains the entry point
   -noconfig[+|-]     Disables implicit references to assemblies
   -nostdlib[+|-]     Does not load core libraries
   -nowarn:W1[,W2]    Disables one or more warnings
   -optimize[+|-]     Enables code optimalizations
   -out:FNAME         Specifies output file
   -pkg:P1[,Pn]       References packages P1..Pn
   -recurse:SPEC      Recursively compiles the files in SPEC ([dir]/file)
   -reference:ASS     References the specified assembly (-r:ASS)
   -target:KIND       Specifies the target (KIND is one of: exe, winexe,
                      library, module), (short: /t:)
   -unsafe[+|-]       Allows unsafe code
   -warnaserror[+|-]  Treat warnings as errors
   -warn:LEVEL        Sets warning level (the highest is 4, the default is 
   -help2             Show other help flags
   -linkresource:FILE[,ID] Links FILE as a resource
   -resource:FILE[,ID]     Embed FILE as a resource
   -win32res:FILE          Specifies Win32 resource file (.res)
   -win32icon:FILE         Use this icon for the output
   @file                   Read response file for more options
Options can be of the form -option or /option

From: mono-list-bounces at lists.ximian.com 
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Dustin Aleksiuk
Sent: Friday, May 20, 2005 3:50 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] asp.net mod_mono reference question


I'm sure there's an easy answer to this, but I can't find it. I'm running 
mod_mono on apache, on Linux. I want to reference my own DLL in my 
codebehind. When the compiler tries to compile my codebehind when the page 
is run, it can't find my classes. It can find all the system classes. 

Is there a config parameter where I can tell it which DLLs to reference? 

Thanks muchly,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://galactus.ximian.com/pipermail/mono-list/attachments/20050521/090de87d/attachment-0001.html

More information about the Mono-list mailing list