That will -definitely- keep it from working. NAnt uses reflection in combination with the TaskAttribute to match your attributes up with your properties and a privately scoped property not only won't show up in reflection, but NAnt wouldn't be able to assign to it even if it did.
Hmmm... Is there a flag to AttributeUsage that can specify public properties only? 'twould seem nice if the compiler could have caught that and failed the compile. Brian -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Simon Steele Sent: Tuesday, February 11, 2003 7:14 AM To: 'Gill, Bobby'; [EMAIL PROTECTED] Subject: RE: [Nant-users] Adding Tasks 0.7.9 vs 0.8 Hi Bobby, I wonder if you should have: public string slnFileName ^^^^^^ Public access. I'm not sure - without looking at your source, I couldn't be sure. All of my attributes are marked as public, and I've never had this problem. Simon. > -----Original Message----- > From: Gill, Bobby [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2003 14:59 > To: Simon Steele; [EMAIL PROTECTED] > Subject: RE: [Nant-users] Adding Tasks 0.7.9 vs 0.8 > > Another problem that I am having is with setting the values > of the TaskAttributes. For instance if I have: > > [TaskAttribute("solution",Required = true)] > private string slnFileName > { > get { return slnFileName_m; } set { > slnFileName_m=value;} > } > > Whenever I try to reference the slnFileName_m variable, I > receive Null pointer errors. My .build file does have the > solution attribute along with a value within, but for some > reason, it doesn't seem to be transferring over to the > variable within the solution property? Any ideas as to what I > am missing?? Thanks > > Bobby Gill > [EMAIL PROTECTED] __________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users