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
- <?xml version="1.0" encoding="utf-8"?>
- <project name="PanelManager" default="build" xmlns="http://nant.sf.net/ schemas/nant-0.84.win32.net-1.0.xsd">
- <sysinfo verbose='true'/>
- <tstamp/>
- <property name="project.name" value=" PanelManager"/>
- <property name="target.type" value="library"/>
- <property name="output.type" value="dll"/>
- <property name="define" value="DEBUG;TRACE" />
- <property name="debug" value="true" />
- <property name="build.dir" value="${project::get-base-directory()}
- \Bin" />
- <property name="output" value="${build.dir}\${project.name}.$
- {output.type}" />
- <property name="doc" value="${build.dir}\${project.name}.xml" />
- <property name="localpath" value="C:\inetpub\wwwroot\$ {project.name}" />
- <target name="clean" description="remove all generated files">
- <delete file="${project.name}..${ output.type }"
- failonerror="false"/>
- <delete file="${project.name}..pdb" failonerror="false"/>
- </target>
- <target name="deploy" description="Create Virtual Directory and copy redistributables">
- <mkdir dir="${localpath}" />
- <mkdir dir="${localpath}\bin" />
- <mkiisdir dirpath="${localpath}" vdirname="${project.name}"
- authntlm="true"/>
- <copy todir="${localpath}">
- <fileset>
- <include name="**\*.aspx"/>
- <include name="**\*.asax"/>
- <include name="**\*.asmx"/>
- <include name="**\*.ashx"/>
- <include name="**\*.config"/>
- </fileset>
- </copy>
- <copy todir="${localpath}\bin" file="${output}" />
- </target>
- <target name="build" description="compiles the source code">
- <mkdir dir="${build.dir}" />
- <csc target="${target.type}" output="${output}" debug="${debug}"
- define="${define}" doc="${doc}">
- <sources>
- <include name="Workqueue.aspx.cs"/>
- </sources>
- <references>
- <include name="C:\Projects\PanelManager\Bin
- \DirectValuations.PanelManager.dll"/>
- <include name="{mkdir}
- \DirectValuations.PanelManager.Security.dll"/>
- <include name="{mkdir}
- \DirectValuations.PanelManager.BusinessObjects.dll"/>
- <include name="C:\Projects\PanelManager\Bin\System.dll"/>
- <include name="C:\Projects\PanelManager\Bin
- \System.Web.Security.dll"/>
- <include name="C:\Projects\PanelManager\Bin\App_Licenses.dll"/
- >
- <include name="C:\Projects\PanelManager\Bin
- \Interop.FAXCOMLib.dll"/>
- <include name="C:\Projects\PanelManager\Bin
- \Janus.Web.GridEx.dll"/>
- </references>
- </csc>
- </target>
- </project>
Expand|Select|Wrap|Line Numbers
- private Entity entity
- {
- get { return Master.Entity; }
- set { Master.Entity = value; }
- }
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.
-------------------------------------------------------------------------------------------------------------------