Fix default path in CultureInfoGenerator:

- #26
This commit is contained in:
damianedwards 2015-05-28 12:45:52 -07:00
parent 1a47d19bb3
commit 5eda65f336
1 changed files with 3 additions and 2 deletions

View File

@ -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}");
}
}