473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problem with Nant on .Net 2.0 and Master Pages

Hi I am a newbie using nAnt for .net 2.0. As such I have not come
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.

-----------------------------------------------------------------------------------------------------------------------------------------

Apr 24 '07 #1
0 2095

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: hoochiegooch | last post by:
Hi, all. I have a couple of questions about NAnt. 1. Is there a better way to invoke NAnt from a C# "Master Test Rig" than shelling out? IOW, how should an ASP.NET web app or Windows Service...
0
by: muesliflakes | last post by:
I have figured out how to get this running by using Ant.Console as a starting point for calling NAnt. I had to include NAnt.Core, NAnt.DotNet & NDoc.Core in my project and it worked correctly. ...
1
by: Sasha | last post by:
Hi all asp.net proffesionals out there, How do you implement master pages in your applications? What libraries do you use and what have been your experience? Sasha
4
by: reezaali | last post by:
Hi All, I wanted to set up my websites like this c:\websites\intranettemplate c:\websites\app1 c:\websites\app2 Basically I wanted to have the master pages defined in the template folder...
7
by: Martijn Saly | last post by:
Hi there, I've created a master page with some controls on it, a Calendar control among others. Now depending on the date(s) selected, the content page needs to be updated. In the masterpage...
20
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
0
by: softwareakash | last post by:
Hi All I am using cruise control for continuous integration with clearcase for this I am using 2 build files, One for cruise control and one for nant all this is done according to the...
1
by: jamesmcdonagh | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.