Hi All,
 
   I am trying to automate a small project. Attached is the nant script for the build as well as the verbose generated when trying to execute the build. For some reason, the zero dll's are copied to the specified folder. Any help or suggestions will be greatly appreciated.
 
Thanks,
Shabana
<?xml version="1.0"?>
<!-- ===========================	Web Samples VB	=================================== -->  

<project name="WebGrid" default="developer">

    <!--<include buildfile="nant.properties" failonerror="true" /> -->
    
    
    
     
 <!-- ===========================     START BUILD OPTIONS 	======================================= -->
    <!-- * Execute a Developer build *--> 
    <target name="developer" description="make a developer rebuild">
    <echo message="Executing a DEVELOPER mode DEBUG build"/>
      <call target="clean" /> 
      <call target="setup-build" />
      <call target="WebGridDynamic" /> 
      <call target="copy" />
    </target>  
    
       
    <!-- * Rebuild the solution in RELEASE mode for a SERVER  *--> 
	<target name="release" description="set properties for a release build">
	  <echo message="Executing a RELEASE mode DEBUG build"/>
	  <property name="debug" value="false" />
	  <property name="optimize" value="true" />
	  <call target="server" /> 	  
	  <call target="releaseDir" />
	</target>
 <!-- ===========================     END BUILD OPTIONS 	======================================= -->
 

 <!-- ===========================     START PRE-BUILD  	======================================= -->    
    <target name="clean">
               
            <!-- Delete all pbgc dlls in the WebGrid\WebGridDynamic\* path -->	
            <delete failonerror="false">
               <fileset>
                  <include name="C:\WebGrid\WebGridDynamic\bin"/>
               </fileset>
            </delete>
    </target>
    
    
    <target name="setup-build" description="compiles the source code">
            <!-- prepare build directory -->
            <mkdir dir="C:\WebGrid\build" />
            <echo message="Created a Build Directory for project"/>
    </target>
 
 <!-- ===========================     END PRE-BUILD  	======================================= -->    
 
 
 <!-- ===========================	START ASSEMBLY COMPILATION 	======================================= -->  
   
    <!-- compile WebGrid.dll -->
    <target name="WebGridDynamic">
    <vbc output="C:\WebGrid\WebGridDynamic\bin\WebGrid_Advanced_Dynamic_Column_Templates_2005V1_VB.dll" target="library">
          <sources>
            <include name="C:\WebGrid\WebGridDynamic\*.vb" />
            <include name="Microsoft.VisualBasic,System,System.Collections,System.Data,System.Diagnostics" />
          </sources>
            
          <references>
            <!--<include asis="true" name="Infragistics.WebUI.UltraWebGrid" />-->
            <include asis="true" name="C:\WebGrid\WebGridDynamic\bin\WebGrid_Advanced_Dynamic_Column_Templates_2005V1_VB.dll" />                   
          </references>
          
        </vbc>
        <echo message="Compiles Dlls"/>
    </target>
    
    
<!-- ===========================	START ASSEMBLY COMPILATION 	======================================= -->  


 <!-- ===========================	START POST BUILD 	======================================= -->  
     <!-- * Copy built DLLs to the web project directories                *--> 
    
    <target name="copy" description="copying DLLs to web root">
    <copy todir="C:\WebGrid\WebGridDynamic\bin">
    	<fileset basedir="C:\WebGrid\build">
        	<include name="*.dll" />        		    	
     	</fileset>
    </copy>
    <echo message="Copied DLL to C:\WebGrid\WebGridDynamic\bin\"/>    
    </target>
    
    
    <target name="releaseDir">

    <echo message = "Deleting C:\WebGrid\release-builds\WebGridDynamic"/>
	    <delete dir="C:\WebGrid\release-builds\WebGridDynamic" failonerror="false" />
   

	<echo message = "Creating release-builds\WebGridDynamic directory directory"/>
	<copy todir="C:\WebGrid\release-builds\WebGridDynamic\{project.build.dir}">
                <fileset basedir="${project.build.dir}">
                    <includes name="*.dll" />
                </fileset>
            </copy>

   
	<copy todir="C:\WebGrid\release-builds\WebGridDynamic">
		<fileset basedir="${project.root.dir}">
			<includes name="AssemblyInfo.vb" />
		</fileset>
	</copy>  
	
	
	<echo message = "Copying and renaming Web.config.deploy files to release-builds directory"/>
	<!--<copy file="${project.root.dir}\web\mypba\Web.config.deploy" tofile="${project.release.build.dir}\pba\2.1.0.0\web\mypba\Web.config" />
	<copy file="${project.root.dir}\web\mypbaadmin\Web.config.deploy" tofile="${project.release.build.dir}\pba\2.1.0.0\web\mypbaadmin\Web.config" />	
	<copy file="${project.root.dir}\webservices\Web.config.deploy" tofile="${project.release.build.dir}\pba\2.1.0.0\webservices\Web.config" />-->

	
    </target>

 <!-- ===========================	END POST BUILD 	======================================= -->  
 

</project>
<?xml version="1.0"?>
<project name="WebGrid.WebGridDynamic.properties">
    <property name="project.client" value="WebGrid" />
    <property name="project.product" value="WebGridDynamic" />
    <property name="project.version" value="2.1.0.0" />
    <property name="project.root.dir" value="c:\${project.client}\${project.product}\${project.version}" />
    <include buildfile="../nant.properties" />
    <property name="project.release.build.dir" value="c:\WebGrid\release-builds" />
</project>
C:\WebGrid>nant.exe -verbose
NAnt 0.85 (Build 0.85.2296.0; nightly; 4/15/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Framework 'net-1.0' is invalid and has not been loaded : The 'System.dll' assemb
ly does not exist in framework assembly directory 'C:\WINNT\Microsoft.NET\Framew
ork\v1.0.3705'..

Framework 'net-2.0' is invalid and has not been loaded : Framework directory 'C:
\WINNT\Microsoft.NET\Framework\v2.0.50727' does not exist..

Framework 'net-2.0' is invalid and has not been loaded : Framework directory 'C:
\WINNT\Microsoft.NET\Framework\v2.0.50215' does not exist..

Framework 'net-2.0' is invalid and has not been loaded : Framework directory 'C:
\WINNT\Microsoft.NET\Framework\v2.0.40607' does not exist..

Framework 'mono-1.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'mono-2.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'mono-2.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'mono-2.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'sscli-1.0' is invalid and has not been loaded : Framework directory '
C:\sscli\build\v1.x86fstchk.rotor' does not exist..

Buildfile: file:///C:/WebGrid/default.build
Target framework: Microsoft .NET Framework 1.1
Base Directory: C:\WebGrid.
Target(s) specified: developer


developer:

     [echo] Executing a DEVELOPER mode DEBUG build

clean:


setup-build:

     [echo] Created a Build Directory for project

WebGridDynamic:

     [echo] Compiles Dlls

copy:

     [copy] Copying 0 files to 'C:\WebGrid\WebGridDynamic\bin'.
     [echo] Copied DLL to C:\WebGrid\WebGridDynamic\bin\

BUILD SUCCEEDED

Total time: 0.1 seconds.


C:\WebGrid>

Reply via email to