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 2014/02/26 15:02:33 UTC
svn commit: r1572076 -
/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Parser/SlnParser/ProjectSolutionParser.cs
Author: brett
Date: Wed Feb 26 15:02:32 2014
New Revision: 1572076
URL: http://svn.apache.org/r1572076
Log:
additional logging
Modified:
incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Parser/SlnParser/ProjectSolutionParser.cs
Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Parser/SlnParser/ProjectSolutionParser.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Parser/SlnParser/ProjectSolutionParser.cs?rev=1572076&r1=1572075&r2=1572076&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Parser/SlnParser/ProjectSolutionParser.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Parser/SlnParser/ProjectSolutionParser.cs Wed Feb 26 15:02:32 2014
@@ -151,6 +151,17 @@ namespace NPanday.ProjectImporter.Parser
prj.GlobalProperties.SetProperty(entry.Key, entry.Value);
}
}
+
+ // Some debugging to troubleshoot an infrequent error where Microsoft.Build throws a NullReferenceException.
+ // This may have been mitigated by setting VisualStudioVersion and can be removed if the problem doesn't re-appear.
+ if (log.IsDebugEnabled)
+ {
+ log.DebugFormat("VisualStudioVersion: global {0}, evaluated {1}",
+ prj.GlobalProperties["VisualStudioVersion"], prj.EvaluatedProperties["VisualStudioVersion"]);
+ log.DebugFormat("CloudExtensionsDir: global {0}, evaluated {1}",
+ prj.GlobalProperties["CloudExtensionsDir"], prj.EvaluatedProperties["CloudExtensionsDir"]);
+ }
+
prj.Load(fullpath);
}
catch (Exception e)