You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2012/01/26 06:45:56 UTC

svn commit: r1236047 - /incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPandayImportProjectForm.cs

Author: brett
Date: Thu Jan 26 06:45:55 2012
New Revision: 1236047

URL: http://svn.apache.org/viewvc?rev=1236047&view=rev
Log:
improve logging of how projects are interpreted

Modified:
    incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPandayImportProjectForm.cs

Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPandayImportProjectForm.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPandayImportProjectForm.cs?rev=1236047&r1=1236046&r2=1236047&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPandayImportProjectForm.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.VisualStudio.Addin/src/main/csharp/NPandayImportProjectForm.cs Thu Jan 26 06:45:55 2012
@@ -65,6 +65,7 @@ namespace NPanday.VisualStudio.Addin
 
         public NPandayImportProjectForm(DTE2 applicationObject)
         {
+            log.Debug("Projects: " + applicationObject.Solution.Projects.Count);
             this.applicationObject = applicationObject;
             InitializeComponent();
 
@@ -122,7 +123,10 @@ namespace NPanday.VisualStudio.Addin
                     Solution2 solution = (Solution2)applicationObject.Solution;
                     foreach (Project project in solution.Projects)
                     {
-                        if (isWebProject(project))
+                        bool web = isWebProject(project);
+                        bool cloud = isCloudProject(project);
+
+                        if (web)
                         {
                             hasWebProjects = true;
                             foreach (object c in ((object[])project.ConfigurationManager.ConfigurationRowNames))
@@ -134,7 +138,7 @@ namespace NPanday.VisualStudio.Addin
                                 }
                             }
                         }
-                        if (isCloudProject(project))
+                        if (cloud)
                         {
                             hasCloudProjects = true;
 
@@ -146,6 +150,8 @@ namespace NPanday.VisualStudio.Addin
                                 }
                             }
                         }
+
+                        log.DebugFormat("Project: {0} (Web = {1}, Cloud = {2}, Kind = {3})", project.Name, web, cloud, project.Kind);
                     }
                     // disabled if there are cloud projects (must be on), or if there are no web projects (not useful)
                     useMsDeployCheckBox.Enabled = hasWebProjects && !hasCloudProjects;