across this bug before, and I would be happy of any help that you may
be able to provide.
In order to help I have included the nant file which is causing the
problem, the object code that is not being built and the error message
which is being produced.
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.
Sorry to be so verbose.
nant file
-----------------------------------------------------------------------------------------------------------------------------------------
<?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.dl l"/
><include name="C:\Projects\PanelManager\Bin
\Interop.FAXCOMLib.dll"/>
<include name="C:\Projects\PanelManager\Bin
\Janus.Web.GridEx.dll"/>
</references>
</csc>
</target>
</project>
-----------------------------------------------------------------------------------------------------------------------------------------
Object code in C#
-----------------------------------------------------------------------------------------------------------------------------------------
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
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build
[sysinfo] Setting system information properties under sys.*
[sysinfo] sys.env.TEMP = C:\DOCUME~1\JAMES~1.MCD\LOCALS~1\Temp
[sysinfo] sys.env.ComSpec = C:\WINDOWS\system32\cmd.exe
[sysinfo] sys.env.USERDOMAIN = DIRECTVAL
[sysinfo] sys.env.CommonProgramFiles = C:\Program Files\Common
Files
[sysinfo] sys.env.ALLUSERSPROFILE = C:\Documents and Settings\All
Users
[sysinfo] sys.os.folder.applicationdata = C:\Documents and Settings
\james.mcdonagh\Application Data
[sysinfo] sys.os.folder.system = C:\WINDOWS\system32
[sysinfo] sys.env.OS = Windows_NT
[sysinfo] sys.env.SystemDrive = C:
[sysinfo] sys.env.VS80COMNTOOLS = C:\Program Files\Microsoft Visual
Studio 8\Common7\Tools\
[sysinfo] sys.os.folder.commonapplicationData = C:\Documents and
Settings\All Users\Application Data
[sysinfo] sys.env.lib = C:\Program Files\SQLXML 4.0\bin\
[sysinfo] sys.env.HOMEPATH = \Documents and Settings\james.mcdonagh
[sysinfo] sys.env.COMPUTERNAME = ITDEV010
[sysinfo] sys.env.USERPROFILE = C:\Documents and Settings
\james.mcdonagh
[sysinfo] sys.os.platform = Win32NT
[sysinfo] sys.env.CLIENTNAME = Console
[sysinfo] sys.os.folder.temp = C:\Documents and Settings
\james.mcdonagh\Local Settings\Temp\
[sysinfo] sys.env.PROCESSOR_IDENTIFIER = x86 Family 15 Model 4
Stepping 3, GenuineIntel
[sysinfo] sys.env.APPDATA = C:\Documents and Settings\james.mcdonagh
\Application Data
[sysinfo] sys.env.LOGONSERVER = \\DVDC02NOTTS
[sysinfo] sys.env.WecVersionForRosebud.CDC = 2
[sysinfo] sys.clr.version = 2.0.50727.42
[sysinfo] sys.env.ProgramFiles = C:\Program Files
[sysinfo] sys.env.PATHEXT
= .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
[sysinfo] sys.env.SESSIONNAME = Console
[sysinfo] sys.env.PROCESSOR_LEVEL = 15
[sysinfo] sys.env.Path = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS
\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:
\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files
\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Progr am Files\Microsoft
Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Common
Files\Adobe\AGL;C:\Program Files\nant;
[sysinfo] sys.env.PROCESSOR_ARCHITECTURE = x86
[sysinfo] sys.os.folder.commonprogramFiles = C:\Program Files\Common
Files
[sysinfo] sys.os = Microsoft Windows NT 5.1.2600 Service Pack 2
[sysinfo] sys.env.HOMEDRIVE = C:
[sysinfo] sys.env.FP_NO_HOST_CHECK = NO
[sysinfo] sys.os.folder.desktopdirectory = C:\Documents and Settings
\james.mcdonagh\Desktop
[sysinfo] sys.env.SystemRoot = C:\WINDOWS
[sysinfo] sys.env.TMP = C:\DOCUME~1\JAMES~1.MCD\LOCALS~1\Temp
[sysinfo] sys.env.PROCESSOR_REVISION = 0403
[sysinfo] sys.os.version = 5.1.2600.131072
[sysinfo] sys.env.NUMBER_OF_PROCESSORS = 2
[sysinfo] sys.os.folder.programfiles = C:\Program Files
[sysinfo] sys.env.windir = C:\WINDOWS
[sysinfo] sys.env.USERNAME = james.mcdonagh
[sysinfo] sys.env.USERDNSDOMAIN = DIRECTVALUATIONS.NET
[tstamp] 24 April 2007 12:07:10.
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.
-----------------------------------------------------------------------------------------------------------------------------------------