Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

appEnvironment is null in the Program ctor. #26

Closed
TelWang opened this issue May 28, 2015 · 1 comment
Closed

appEnvironment is null in the Program ctor. #26

TelWang opened this issue May 28, 2015 · 1 comment
Assignees
Milestone

Comments

@TelWang
Copy link

TelWang commented May 28, 2015

When I run the CultureInfoGenerator directly , exception is thrown, appEnvironment is null.
maybe, the tool will be integrated into vs, but shall we give a default value when appEnvironment is null?
code change to :
_appName = appEnvironment != null ? "CultureInfoGenerator" : appEnvironment.ApplicationName;
_appPath = appEnvironment != null ? "" : appEnvironment.ApplicationBasePath;

another issue, in the Main method, the outputFilePath need changed from "../Microsoft.Framework.Globalization.CultureCache/CultureInfoList.cs" to
"../Microsoft.Framework.Globalization.CultureInfoCache/CultureInfoList.cs"

@hishamco
Copy link
Contributor

@TelWang the CultureInfoGenerator works fine if we change the outputFilePath as you mentioned above, I don't face an issues with appEnvironment

@DamianEdwards we need to change the outputFilePath to "../Microsoft.Framework.Globalization.CultureInfoCache/CultureInfoList.cs" because the old value causes a DirectoryNotFoundException

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants