weixin_39639653
weixin_39639653
2020-12-26 14:35

Rybrande/working directory

Set the working directory of the SelfHostDeployer to the ApplicationPath so that projects that do UseContentRoot(Directory.GetCurrentDirectory()) (Like https://github.com/aspnet/Entropy/tree/dev/samples/Localization.StarterWeb) will be able to find their content.

该提问来源于开源项目:aspnet/Hosting

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39528843 weixin_39528843 4月前

    What changed this week that caused Loc to stop working?

    点赞 评论 复制链接分享
  • weixin_39639653 weixin_39639653 4月前

    CC , this should fix the Entropy failure caused by Localization.StarterWeb using it's ContentRoot. The problem ended up being that it couldn't find its appsettings.json because it was looking in the executing directory instead of in the application path. I ran all the Entropy and Hosting tests but someone with a little more domain knowledge might want to give this a once over to ensure I haven't missed a side effect.

    点赞 评论 复制链接分享
  • weixin_39639653 weixin_39639653 4月前

    We did this (https://github.com/aspnet/Entropy/commit/5f0a1209986096436d94d7f7fbe07f21cd55582b) to fix the fact that that sample wouldn't launch normally, it only passed the test. It looks like has backed that change out temporarily to fix the build, but I think we should re-instate it once this is in to keep the samples up to date with our recommended pattern.

    点赞 评论 复制链接分享
  • weixin_39639653 weixin_39639653 4月前

    are you the person best able to review this?

    点赞 评论 复制链接分享
  • weixin_39639653 weixin_39639653 4月前

    Nevermind, beat me to the punch in #828.

    点赞 评论 复制链接分享

相关推荐