From 5eda65f3365291b7b5805f9e6815596e60df8364 Mon Sep 17 00:00:00 2001 From: damianedwards Date: Thu, 28 May 2015 12:45:52 -0700 Subject: [PATCH] Fix default path in CultureInfoGenerator: - #26 --- src/CultureInfoGenerator/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CultureInfoGenerator/Program.cs b/src/CultureInfoGenerator/Program.cs index f45c1c7f1c..350399c19f 100644 --- a/src/CultureInfoGenerator/Program.cs +++ b/src/CultureInfoGenerator/Program.cs @@ -22,7 +22,7 @@ namespace CultureInfoGenerator public void Main(string[] args) { - var outputFilePath = args.Length > 0 ? args[0] : Path.Combine(_appPath, "../Microsoft.Framework.Globalization.CultureCache/CultureInfoList.cs"); + var outputFilePath = Path.GetFullPath(args.Length > 0 ? args[0] : Path.Combine(_appPath, "../Microsoft.Framework.Globalization.CultureInfoCache/CultureInfoList.cs")); var netFxVersion = Get45or451FromRegistry(); var windowsVersion = Environment.OSVersion; @@ -76,11 +76,12 @@ namespace Microsoft.Framework.Globalization writer.WriteLine(); } } - writer.WriteLine( @" }; } }"); + + Console.WriteLine($"{cultures.Length} culture names written to {outputFilePath}"); } }