have hardly any experience w/ web apps, but why is the error message saying "the type or namespace 'Test'...". i don't see the type or namespace 'Test' referenced in the code below. is the message pertaining to something else? and, is the reference list identical to the one in the .csproj file?
> -----Original Message----- > From: Jeff Kararo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2003 08:03 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [Nant-users] Error with User Controls > > > Here is the task in my .build file. The web control is in the same > namespace as the web page that uses it. I have other web user > controls in this page and other pages that do not have this problem. > The only difference is that I am accessing a public property of this > control. It compiles fine in VS but not NANT. > > C# CODE > > protected Login ucLogin; <-- this is the web control that I > declare in > the code-behind > > private void Page_Load(object sender, System.EventArgs e) > { > if (IsPostBack == false) > { > ucLogin.Message = "TEST"; > } > } > > > NANT TASK > > <target name="web" depends="init datasets, data, biz" > description="compile Web"> > <delete file="${build.dir}/MyWeb.dll" > failonerror="false"/> > <copy file="${web.home}/MyWeb.snk" todir="${ffl.home}" > failonerror="true"/> > <csc target="library" output="${build.dir}/MyWeb.dll" > debug="${build.debug}" failonerror="false"> > <sources basedir="${web.home}" > failonempty="true"> > <includes name="*.cs"/> > </sources> > <references basedir="${build.dir}"> > <includes name="MyDatasets.dll"/> > <includes name="MyData.dll"/> > <includes name="MyBiz.dll"/> > <includes name="MyControls.dll"/> > </references> > </csc> > <delete file="${web.home}/MyWeb.snk"/> > </target> > > > > > -----Original Message----- > From: Jean Rajotte [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2003 7:23 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [Nant-users] Error with User Controls > > what does the compile task look like? do you reference all > assemblies and references? > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Jeff Kararo > > Sent: Monday, June 02, 2003 13:49 > > To: [EMAIL PROTECTED] > > Subject: [Nant-users] Error with User Controls > > > > > > I have a user control in my asp.net project. The user control has a > > public property that I set that will display a message in the > > control. Everything compiles in VS.NET. However, I get an > error in > > NANT when trying to compile. The control is in the same namespace > as > > the aspx page. I even tried using the full qualified name when > > declaring the variable in the code-behind. > > > > ERROR > > The type or namespace name 'Test' does not exist in the class or > > namespace (are you missing an assembly reference?) > > > > Has anyone else had this or any ideas on how to fix it? > > > > Jeff > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: eBay > > Get office equipment for less on eBay! > > http://adfarm.mediaplex.com/ad/ck/711-11697-> 6916-5 > > > > _______________________________________________ > > > > Nant-users mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/n> ant-users > > > > ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users