473,385 Members | 1,919 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,385 software developers and data experts.

nAnt: .Net 2.0 problem with building files

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
1 6159
MMcCarthy
14,534 Expert Mod 8TB
This question is being moved to the .NET forum.

ADMIN
Apr 24 '07 #2

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

Similar topics

2
by: HaukiDog | last post by:
Hi, I am trying to set up my C# web project to be compiled by NANT. Everything compiles and works fine within the IDE. I have a created a NANT build file which has a simple project tag, like...
1
by: Mikkel Faarup | last post by:
Hi All I have run into a problem using NANT. When building with NANT and local characters like æ ø å are used in file- and method-names NANT reports an XMLParser error? VS.Net builds fine...
4
by: harleybl | last post by:
Hello, I have a C++ mixed mode dll ( unmanaged/managed ) that wraps a C# dll to provide some functionality for Microsoft Excel. I am able to compile my solution fine in Visual Studio .NET 2003...
1
by: Bit byte | last post by:
I am a NANT newbie. I would like to use NAnt to automate my build processes - but have come unstuck early on in the process. I have several projects under a /src directory. There is some...
3
by: Me | last post by:
I have a simple solution file which I am looking to build using Nant However this is written in .net 2.0 and when I try building this .net 2.0, I get an error message saying "Microsoft Visual...
4
by: SenthilVel | last post by:
Hi I am in a conversion project of Code from .Net 1.1 -->.Net 2.0 . 1. I am going to build all my projects with NAnt RC4 version and also with VS2005 to check the affected Areas. 2. I have...
12
by: michael sorens | last post by:
So I have compiled a .dll file from a Visual Studio 2005 project containing a few dozen c# files. Now I want to automate this build using ant (have not yet looked at nant, but the rest of my...
0
by: james.mcdonagh | last post by:
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...
1
by: Crash | last post by:
Hi all, Is there a newsgroup for NANT? Or is there some place I can post NANT questions? In case this newsgroup is Ok for NANT questions, here is my issue: Windows XP VS 2003
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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...

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.