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="PanelMana ger" default="build" xmlns="http://nant.sf.net/
schemas/nant-0.84.win32.net-1.0.xsd">
<sysinfo verbose='true'/>
<tstamp/>
<property name="project.n ame" value=" PanelManager"/>
<property name="target.ty pe" value="library"/>
<property name="output.ty pe" value="dll"/>
<property name="define" value="DEBUG;TR ACE" />
<property name="debug" value="true" />
<property name="build.dir " value="${projec t::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:\inetp ub\wwwroot\$
{project.name}" />
<target name="clean" description="re move all generated files">
<delete file="${project .name}..${ output.type }"
failonerror="fa lse"/>
<delete file="${project .name}..pdb" failonerror="fa lse"/>
</target>
<target name="deploy" description="Cr eate Virtual Directory and copy
redistributable s">
<mkdir dir="${localpat h}" />
<mkdir dir="${localpat h}\bin" />
<mkiisdir dirpath="${loca lpath}" vdirname="${pro ject.name}"
authntlm="true"/>
<copy todir="${localp ath}">
<fileset>
<include name="**\*.aspx "/>
<include name="**\*.asax "/>
<include name="**\*.asmx "/>
<include name="**\*.ashx "/>
<include name="**\*.conf ig"/>
</fileset>
</copy>
<copy todir="${localp ath}\bin" file="${output} " />
</target>
<target name="build" description="co mpiles the source code">
<mkdir dir="${build.di r}" />
<csc target="${targe t.type}" output="${outpu t}" debug="${debug} "
define="${defin e}" doc="${doc}">
<sources>
<include name="Workqueue .aspx.cs"/>
</sources>
<references>
<include name="C:\Projec ts\PanelManager \Bin
\DirectValuatio ns.PanelManager .dll"/>
<include name="{mkdir}
\DirectValuatio ns.PanelManager .Security.dll"/>
<include name="{mkdir}
\DirectValuatio ns.PanelManager .BusinessObject s.dll"/>
<include name="C:\Projec ts\PanelManager \Bin\System.dll "/>
<include name="C:\Projec ts\PanelManager \Bin
\System.Web.Sec urity.dll"/>
<include name="C:\Projec ts\PanelManager \Bin\App_Licens es.dll"/
><include name="C:\Projec ts\PanelManager \Bin
\Interop.FAXCOM Lib.dll"/>
<include name="C:\Projec ts\PanelManager \Bin
\Janus.Web.Grid Ex.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\Pa nelManager\pane lmanager.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.bu ild
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\JAM ES~1.MCD\LOCALS ~1\Temp
[sysinfo] sys.env.ComSpec = C:\WINDOWS\syst em32\cmd.exe
[sysinfo] sys.env.USERDOM AIN = DIRECTVAL
[sysinfo] sys.env.CommonP rogramFiles = C:\Program Files\Common
Files
[sysinfo] sys.env.ALLUSER SPROFILE = C:\Documents and Settings\All
Users
[sysinfo] sys.os.folder.a pplicationdata = C:\Documents and Settings
\james.mcdonagh \Application Data
[sysinfo] sys.os.folder.s ystem = C:\WINDOWS\syst em32
[sysinfo] sys.env.OS = Windows_NT
[sysinfo] sys.env.SystemD rive = C:
[sysinfo] sys.env.VS80COM NTOOLS = C:\Program Files\Microsoft Visual
Studio 8\Common7\Tools \
[sysinfo] sys.os.folder.c ommonapplicatio nData = C:\Documents and
Settings\All Users\Applicati on Data
[sysinfo] sys.env.lib = C:\Program Files\SQLXML 4.0\bin\
[sysinfo] sys.env.HOMEPAT H = \Documents and Settings\james. mcdonagh
[sysinfo] sys.env.COMPUTE RNAME = ITDEV010
[sysinfo] sys.env.USERPRO FILE = C:\Documents and Settings
\james.mcdonagh
[sysinfo] sys.os.platform = Win32NT
[sysinfo] sys.env.CLIENTN AME = Console
[sysinfo] sys.os.folder.t emp = C:\Documents and Settings
\james.mcdonagh \Local Settings\Temp\
[sysinfo] sys.env.PROCESS OR_IDENTIFIER = x86 Family 15 Model 4
Stepping 3, GenuineIntel
[sysinfo] sys.env.APPDATA = C:\Documents and Settings\james. mcdonagh
\Application Data
[sysinfo] sys.env.LOGONSE RVER = \\DVDC02NOTTS
[sysinfo] sys.env.WecVers ionForRosebud.C DC = 2
[sysinfo] sys.clr.version = 2.0.50727.42
[sysinfo] sys.env.Program Files = C:\Program Files
[sysinfo] sys.env.PATHEXT
= .COM;.EXE;.BAT; .CMD;.VBS;.VBE; .JS;.JSE;.WSF;. WSH
[sysinfo] sys.env.SESSION NAME = Console
[sysinfo] sys.env.PROCESS OR_LEVEL = 15
[sysinfo] sys.env.Path = C:\WINDOWS\syst em32;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:\Progr am Files
\Microsoft SQL Server\90\DTS\B inn\;C:\Program Files\Microsoft SQL
Server\90\Tools \Binn\VSShell\C ommon7\IDE\;C:\ Program Files\Microsoft
Visual Studio 8\Common7\IDE\P rivateAssemblie s\;C:\Program Files\Common
Files\Adobe\AGL ;C:\Program Files\nant;
[sysinfo] sys.env.PROCESS OR_ARCHITECTURE = x86
[sysinfo] sys.os.folder.c ommonprogramFil es = C:\Program Files\Common
Files
[sysinfo] sys.os = Microsoft Windows NT 5.1.2600 Service Pack 2
[sysinfo] sys.env.HOMEDRI VE = C:
[sysinfo] sys.env.FP_NO_H OST_CHECK = NO
[sysinfo] sys.os.folder.d esktopdirectory = C:\Documents and Settings
\james.mcdonagh \Desktop
[sysinfo] sys.env.SystemR oot = C:\WINDOWS
[sysinfo] sys.env.TMP = C:\DOCUME~1\JAM ES~1.MCD\LOCALS ~1\Temp
[sysinfo] sys.env.PROCESS OR_REVISION = 0403
[sysinfo] sys.os.version = 5.1.2600.131072
[sysinfo] sys.env.NUMBER_ OF_PROCESSORS = 2
[sysinfo] sys.os.folder.p rogramfiles = C:\Program Files
[sysinfo] sys.env.windir = C:\WINDOWS
[sysinfo] sys.env.USERNAM E = james.mcdonagh
[sysinfo] sys.env.USERDNS DOMAIN = DIRECTVALUATION S.NET
[tstamp] 24 April 2007 12:07:10.
build:
[csc] Compiling 1 files to 'C:\Projects\Pa nelManager\Bin\
PanelManager.dl l'.
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(25 ,29): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(26 ,22): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(43 ,18): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(45 ,24): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(49 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(49 ,48): error
CS0117: 'WorkQueue' does not contain a definition for 'dsWorkQueue'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(50 ,33): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(51 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(52 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(53 ,17): error
CS0103: The name 'lblEntity' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(57 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(57 ,48): error
CS0117: 'WorkQueue' does not contain a definition for
'dsWorkQueueAll '
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(58 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(59 ,22): error
CS0117: 'WorkQueue' does not contain a definition for 'GridEX1'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(60 ,17): error
CS0103: The name 'lblEntity' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(67 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(69 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(70 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(71 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(72 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(73 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(74 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(75 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(76 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(77 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(78 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(79 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(80 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(92 ,13): error
CS0012: The type 'Janus.Web.Comm on.IJanusXmlLay outsSupport' is defined
in an assembly that is not referenced. You must add a reference to
assembly 'Janus.Web.Comm on, Version=1.5.101 9.0, Culture=neutral ,
PublicKeyToken= 21d5517571b185b f'.
[csc] c:\Projects\Pan elManager\Bin\J anus.Web.GridEX .dll:
(Location of symbol related to previous error)
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(98 ,13): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(10 8,40): error
CS0103: The name 'GridEX1' does not exist in the current context
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(10 9,16): error
CS0117: 'System.Web.UI. MasterPage' does not contain a definition for
'Entity'
[csc] c:\Projects\Pan elManager\WorkQ ueue.aspx.cs(31 ,19): warning
CS1591: Missing XML comment for publicly visible type or member
'WorkQueue.Enti ty'
BUILD FAILED
C:\Projects\Pan elManager\panel manager.build(3 9,6):
External Program Failed: C:\WINDOWS\Micr osoft.NET\Frame work
\v2.0.50727\csc .exe (return code was 1)
Total time: 0.7 seconds.
NAnt File 'C:\Projects\Pa nelManager\pane lmanager.build' , Target=build
completed.
-----------------------------------------------------------------------------------------------------------------------------------------