Hi All,

I've been experimenting with the <solution> task from CVS and had made a few
changes in order to make it work for me.

Added the NoWarn option from VS.NET 2003
I have SQL projects as well as deployment projects in my solution, so
ignored those.
And the webmapcollection was using the path instead of the url to retrieve
the webmap object.



Index: ConfigurationSettings.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/ConfigurationSettings.cs,v
retrieving revision 1.5
diff -u -r1.5 ConfigurationSettings.cs
--- ConfigurationSettings.cs    17 Aug 2003 08:46:53 -0000      1.5
+++ ConfigurationSettings.cs    21 Aug 2003 13:54:48 -0000
@@ -70,6 +70,7 @@
             
             if (projectSettings.Type == ProjectType.CSharp) {
                 htStringSettings["WarningLevel"] = "/warn:{0}";
+                htStringSettings["NoWarn"] = "/nowarn:{0}";
                 htBooleanSettings["IncrementalBuild"] = "/incremental";
             }
 
Index: Solution.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/Solution.cs,v
retrieving revision 1.8
diff -u -r1.8 Solution.cs
--- Solution.cs 17 Aug 2003 08:46:53 -0000      1.8
+++ Solution.cs 21 Aug 2003 13:54:52 -0000
@@ -61,6 +61,11 @@
                 string guid = m.Groups["guid"].Value;
                 string fullPath;
 
+                // only supports vb and cs projects
+                if (!project.ToLower().EndsWith(".csproj") &&
!project.ToLower().EndsWith(".vbproj")) {
+                    continue;
+                }
+
                 try {
                     // translate URLs to physical paths if using a webmap
                     WebMap map = _webMaps[project];
Index: Types/WebMapCollection.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.VSNet/Types/WebMapCollection.cs,v
retrieving revision 1.1
diff -u -r1.1 WebMapCollection.cs
--- Types/WebMapCollection.cs   17 Aug 2003 08:37:51 -0000      1.1
+++ Types/WebMapCollection.cs   21 Aug 2003 13:54:53 -0000
@@ -75,7 +75,7 @@
                 if (value != null) {
                     // Try to locate instance using Value
                     foreach (WebMap WebMap in base.List) {
-                        if (value.Equals(WebMap.Path)) {
+                        if (value.Equals(WebMap.Url)) {
                             return WebMap;
                         }
                     }


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to