By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,967 Members | 2,124 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,967 IT Pros & Developers. It's quick & easy.

nAnt: .Net 2.0 problem with building files

P: 2
Hi newbie using nAnt for .net 2.0. I would be happy of any help that you may be able to provide.

The weird thing is that VS.net builds without a problem. And the intellisense within the object WorkQueue knows that Master is referring to the PanelManager reference.

nant file
-------------------------------------------------------------------------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <project name="PanelManager" default="build" xmlns="http://nant.sf.net/ schemas/nant-0.84.win32.net-1.0.xsd">
  3.   <sysinfo verbose='true'/>
  4.   <tstamp/>
  5.   <property name="project.name"  value=" PanelManager"/>
  6.   <property name="target.type" value="library"/>
  7.   <property name="output.type" value="dll"/>
  8.   <property name="define" value="DEBUG;TRACE" />
  9.   <property name="debug" value="true" />
  10.   <property name="build.dir" value="${project::get-base-directory()}
  11. \Bin" />
  12.   <property name="output" value="${build.dir}\${project.name}.$
  13. {output.type}" />
  14.   <property name="doc" value="${build.dir}\${project.name}.xml" />
  15.   <property name="localpath" value="C:\inetpub\wwwroot\$ {project.name}" />
  16.  
  17.   <target name="clean" description="remove all generated files">
  18.     <delete file="${project.name}..${ output.type }"
  19. failonerror="false"/>
  20.     <delete file="${project.name}..pdb" failonerror="false"/>
  21.   </target>
  22.  
  23.   <target name="deploy" description="Create Virtual Directory and copy redistributables">
  24.     <mkdir dir="${localpath}" />
  25.     <mkdir dir="${localpath}\bin" />
  26.  
  27.     <mkiisdir dirpath="${localpath}" vdirname="${project.name}"
  28. authntlm="true"/>
  29.     <copy todir="${localpath}">
  30.       <fileset>
  31.         <include name="**\*.aspx"/>
  32.         <include name="**\*.asax"/>
  33.         <include name="**\*.asmx"/>
  34.         <include name="**\*.ashx"/>
  35.         <include name="**\*.config"/>
  36.       </fileset>
  37.     </copy>
  38.     <copy todir="${localpath}\bin" file="${output}" />
  39.   </target>
  40.  
  41.   <target name="build" description="compiles the source code">
  42.     <mkdir dir="${build.dir}" />
  43.     <csc target="${target.type}" output="${output}" debug="${debug}"
  44. define="${define}" doc="${doc}">
  45.       <sources>
  46.         <include name="Workqueue.aspx.cs"/>
  47.       </sources>
  48.       <references>
  49.         <include name="C:\Projects\PanelManager\Bin
  50. \DirectValuations.PanelManager.dll"/>
  51.         <include name="{mkdir}
  52. \DirectValuations.PanelManager.Security.dll"/>
  53.         <include name="{mkdir}
  54. \DirectValuations.PanelManager.BusinessObjects.dll"/>
  55.         <include name="C:\Projects\PanelManager\Bin\System.dll"/>
  56.         <include name="C:\Projects\PanelManager\Bin
  57. \System.Web.Security.dll"/>
  58.         <include name="C:\Projects\PanelManager\Bin\App_Licenses.dll"/
  59. >
  60.         <include name="C:\Projects\PanelManager\Bin
  61. \Interop.FAXCOMLib.dll"/>
  62.         <include name="C:\Projects\PanelManager\Bin
  63. \Janus.Web.GridEx.dll"/>
  64.  
  65.       </references>
  66.     </csc>
  67.   </target>
  68. </project>
  69.  
-------------------------------------------------------------------------------------------------------------------Object code in C#
Expand|Select|Wrap|Line Numbers
  1.     private Entity entity
  2.     {
  3.         get { return Master.Entity; }
  4.         set { Master.Entity = value; }
  5.     }
  6.  
-------------------------------------------------------------------------------------------------------------------
Error message

Running NAnt File 'C:\Projects\PanelManager\panelmanager.build',
Target=build
NAnt 0.85 (Build 0.85.2478.0; release; 14/10/2006) Copyright (C) 2001-2006 Gerry Shaw http://nant.sourceforge.net

Buildfile: file:///C:/Projects/PanelManager/panelmanager.build
.....
build:

[csc] Compiling 1 files to 'C:\Projects\PanelManager\Bin\ PanelManager.dll'.
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(25,29): error
CS0117: 'System.Web.UI.MasterPage' does not contain a definition for 'Entity'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(26,22): error
CS0117: 'System.Web.UI.MasterPage' does not contain a definition for 'Entity'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(43,18): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(45,24): error
CS0117: 'System.Web.UI.MasterPage' does not contain a definition for 'Entity'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(49,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(49,48): error
CS0117: 'WorkQueue' does not contain a definition for 'dsWorkQueue'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(50,33): error
CS0117: 'System.Web.UI.MasterPage' does not contain a definition for 'Entity'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(51,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(52,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(53,17): error
CS0103: The name 'lblEntity' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(57,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(57,48): error
CS0117: 'WorkQueue' does not contain a definition for 'dsWorkQueueAll'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(58,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(59,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(60,17): error
CS0103: The name 'lblEntity' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(67,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(69,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(70,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(71,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(72,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(73,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(74,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(75,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(76,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(77,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(78,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(79,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(80,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(92,13): error
CS0012: The type 'Janus.Web.Common.IJanusXmlLayoutsSupport' is defined in an assembly that is not referenced. You must add a reference to assembly 'Janus.Web.Common, Version=1.5.1019.0, Culture=neutral, PublicKeyToken=21d5517571b185bf'.
[csc] c:\Projects\PanelManager\Bin\Janus.Web.GridEX.dll:
(Location of symbol related to previous error)
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(98,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(108,40) : error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(109,16) : error
CS0117: 'System.Web.UI.MasterPage' does not contain a definition for 'Entity'
[csc] c:\Projects\PanelManager\WorkQueue.aspx.cs(31,19): warning
CS1591: Missing XML comment for publicly visible type or member 'WorkQueue.Entity'

BUILD FAILED

C:\Projects\PanelManager\panelmanager.build(39,6):
External Program Failed: C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\csc.exe (return code was 1)

Total time: 0.7 seconds.

NAnt File 'C:\Projects\PanelManager\panelmanager.build', Target=build completed.

-------------------------------------------------------------------------------------------------------------------
Apr 24 '07 #1
Share this Question
Share on Google+
1 Reply


MMcCarthy
Expert Mod 10K+
P: 14,534
This question is being moved to the .NET forum.

ADMIN
Apr 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.