? friendlySdkError.patch
Index: Project.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/Project.cs,v
retrieving revision 1.42
diff -c -r1.42 Project.cs
*** Project.cs	28 Mar 2004 09:23:05 -0000	1.42
--- Project.cs	31 Mar 2004 17:18:13 -0000
***************
*** 287,292 ****
--- 287,302 ----
                                  string program, commandLine;
                                  reference.GetCreationCommand(cs, out program, out commandLine);
  
+                                 // Check that we have an SdkDirectory available
+                                 if(null == SolutionTask.Project.TargetFramework.SdkDirectory)
+                                 {
+                                     throw new BuildException(string.Format(CultureInfo.InvariantCulture, 
+                                         "While building {0}:" + Environment.NewLine +
+                                         " The framework SDK directory was not found or not set." + Environment.NewLine +
+                                         " You may need to specify a specific framework to use with the -k: command line option.",
+                                         Name), Location.UnknownLocation);
+                                 }
+ 
                                  // Append the correct SDK directory to the program
                                  program = Path.Combine(SolutionTask.Project.TargetFramework.SdkDirectory.FullName, program);
                                  Log(Level.Verbose, LogPrefix + program + " " + commandLine);
