incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r545406 - /incubator/nmaven/trunk/assemblies/NMaven.Core/src/main/csharp/Core/Impl/ProjectGeneratorImpl.cs
Date Fri, 08 Jun 2007 04:52:17 GMT
Author: sisbell
Date: Thu Jun  7 21:52:16 2007
New Revision: 545406

URL: http://svn.apache.org/viewvc?view=rev&rev=545406
Log:
Fix for JIRA NMAVEN-71

Modified:
    incubator/nmaven/trunk/assemblies/NMaven.Core/src/main/csharp/Core/Impl/ProjectGeneratorImpl.cs

Modified: incubator/nmaven/trunk/assemblies/NMaven.Core/src/main/csharp/Core/Impl/ProjectGeneratorImpl.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/assemblies/NMaven.Core/src/main/csharp/Core/Impl/ProjectGeneratorImpl.cs?view=diff&rev=545406&r1=545405&r2=545406
==============================================================================
--- incubator/nmaven/trunk/assemblies/NMaven.Core/src/main/csharp/Core/Impl/ProjectGeneratorImpl.cs
(original)
+++ incubator/nmaven/trunk/assemblies/NMaven.Core/src/main/csharp/Core/Impl/ProjectGeneratorImpl.cs
Thu Jun  7 21:52:16 2007
@@ -105,7 +105,7 @@
 		
 		private Project CreateProjectFor(string fileName) 
 		{
-            Engine engine = new Engine(@"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727");
+            Engine engine = new Engine(Environment.GetEnvironmentVariable("SystemRoot") +
@"\Microsoft.NET\Framework\v2.0.50727");
             Project project = new Project(engine);
             project.Load(@fileName);
             return project;
@@ -136,7 +136,7 @@
 			{
 				throw new ExecutionException("NMAVEN-000-000: Missing required parameter.");
 			}
-            Engine engine = new Engine(@"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727");
+            Engine engine = new Engine(Environment.GetEnvironmentVariable("SystemRoot") +
@"\Microsoft.NET\Framework\v2.0.50727");
             Project project = new Project(engine);
 
             Console.WriteLine("ProjectGuid = " + projectGuid.ToString() + ", RootNameSpace
= " +
@@ -273,7 +273,8 @@
 		
 		private bool IsInGac(string assembly)
 		{
-			return new DirectoryInfo(@"C:\WINDOWS\assembly\GAC_MSIL\" + assembly).Exists;	
+			return new DirectoryInfo(Environment.GetEnvironmentVariable("SystemRoot")
+			    + @"\assembly\GAC_MSIL\" + assembly).Exists;		
 		}
 
         private string GetAssemblyFor(string dependency)



Mime
View raw message