Hi,
 
If your problem is only about compiling, use the -t option or setting <property 
name="nant.settings.currentframework" value="net-2.0" /> from within your build 
script. This will cause nant to link your build to the appropriate target 
framework's assembly versions.
 
If it is about running e.g. NUnit test, you need to force nant to execute using 
the desired target runtime version (tests are executed in the same physical 
process  as nant). You can do this by modifiying your nant.exe.config, section 
<configuration><startup>. Leave only the <supportedRuntime> element you need 
and comment out all others.
 
cheers,
Erich

________________________________

Von: [EMAIL PROTECTED] im Auftrag von [EMAIL PROTECTED]
Gesendet: Do 2007-04-12 01:31
An: [EMAIL PROTECTED]
Betreff: Re: [NAnt-users] Error CS0234: The type or namespace 
name'UpdatePanel'does not exist in the namespace 'System.Web.UI'


Check what version of the framework nAnt is running under. It could be running 
under 1.1 and not 2.0 as VS 2005 does.
 
You can pass this as a command line parameter in your call to nant (-t:net-1.1. 
I assume -t:net-2.0 for version 2.0 frameowrk) or I think there is a setting in 
nant.exe.config or something similar to tell it which version of framework to 
use
 
Thanks,
Angus.


________________________________

        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Iordache 
Aurelian
        Sent: Thursday, 12 April 2007 7:38 AM
        To: [EMAIL PROTECTED]
        Subject: [NAnt-users] Error CS0234: The type or namespace name 
'UpdatePanel'does not exist in the namespace 'System.Web.UI'
        
        
        Hello,
         
        I'm using NANT to compile a VS.Net2005 solution.
        The error I receive is:
         
         [solution] ManageSendToSiteGroupIDs.aspx.designer.cs(29,41): Error 
CS0234: The type or namespace name 'ScriptManager' does not exist in the 
namespace 'System.Web.UI' (are you missing an assembly reference?)
         [solution] ManageSendToSiteGroupIDs.aspx.designer.cs(74,41): Error 
CS0234: The type or namespace name 'UpdatePanel' does not exist in the 
namespace 'System.Web.UI' (are you missing an assembly reference?)
        
        The problem is I don't have any error while compiling the solution with 
VS.Net2005. 
        Looks like NANT doesn't recognize ScriptManager and UpdatePanel types 
in System.Web.UI altough in VS.Net2005 while editing these files these types 
appears 
        in IntelliSense dropdown for System.Web.UI.
         
        ManageSendToSiteGroupIDs.aspx.designer.cs looks like this:
         
        namespace <some namespace> {
            /// <summary>
            /// ManageSendToSiteGroupIDs class.
            /// </summary>
            /// <remarks>
            /// Auto-generated class.
            /// </remarks>
            public partial class ManageSendToSiteGroupIDs {
                
                /// <summary>
                /// scriptmanager1 control.
                /// </summary>
                /// <remarks>
                /// Auto-generated field.
                /// To modify move field declaration from designer file to 
code-behind file.
                /// </remarks>
                protected global::System.Web.UI.ScriptManager scriptmanager1;
         
               
---------------------------------------------------------------------------------------------------------
         
               /// <summary>
                /// UpdatePanel1 control.
                /// </summary>
                /// <remarks>
                /// Auto-generated field.
                /// To modify move field declaration from designer file to 
code-behind file.
                /// </remarks>
                protected global::System.Web.UI.UpdatePanel UpdatePanel1;
         
        I'm a little blocked with this issue because seems this is a NANT issue.
        Any ideea ? Does anyone has/had the same problem ?
         
        Thanks...

        
________________________________

        Now that's room service! Choose from over 150,000 hotels 
        in 45,000 destinations on Yahoo! Travel 
<http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw-->
  to find your fit.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to