ASP.NET is not that complex.  It's basically just a bunch of text files
(*.as?x and web.config) along with a class library (or several class
libraries).  We just build all the code-behind classes into a single
class library assembly.  We then copy all the text files and any
dependencies to their final destinations:

<target name="build" description="compiles the source code">

        <copy file="${build.dir}\Dependency.dll"
todir="${build.dir}\Web\bin" />

        <!-- Epic.EnterpriseServices.ServiceHost.exe -->
        <csc target="library" output="${build.dir}\Web\bin\MyWeb.dll"
debug="${debug}">
                <sources>
                        <includes name="**\*.cs"/>
                </sources>
                <resources>
                        <includes name="**\*.resx"/>
                </resources>
                <references>
                        <includes name="${build.dir}\Dependency.dll"/>
                        <includes
name="..\ThirdParty\Microsoft.Web.Services.dll"/>
                </references>
                <arg value="/nowarn:1591" />
        </csc>

        <copy todir="${build.dir}\Web">
                <fileset>
                        <includes name="**\*.aspx"/>
                        <includes name="**\*.asax"/>
                        <includes name="**\*.asmx"/>
                        <includes name="**\*.ashx"/>
                        <includes name="**\*.config"/>
                </fileset>
        </copy>

</target>

-----Original Message-----
From: Alejandro Calbazana [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 9:26 PM
To: [EMAIL PROTECTED]

Does anyone have a sample build file for ASP.net projects that they
could
post or refer me to?

Thanks,

Alejandro



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to