-
Notifications
You must be signed in to change notification settings - Fork 203
ConfigurationBuilder.GetBasePath() does not return an absolute path on Mono #336
Comments
@pranavkm can you see if this is a Mono issue or a bug in our code? |
And is there any relationship to #334 ? |
We have the same findings when updating |
@aggieben looks like the other one was closed as a dup of this instead 😄 |
Oops just re-read that. Today is opposite day. Or maybe it isn't opposite day.. Hmm... |
@davidfowl, it looks like the issue is with the
Would this property continue to exist with the CLI? If not, should we just use the AppDomain.BasePath \ Directory.GetCurrentDirectory() instead? If the property would continue to exist, we can simply expand it and that should suffice (or have DNX expand it when it populates it). |
Had a chat with @pranavkm. APP_CONTEXT_BASE_DIRECTORY is not DNX specific. We actually set it in DNX to make AppContext.BaseDirectory have the right value (see aspnet/dnx#2662), so it appears we would need to make sure it gets the right value on Mono. |
So is the fix supposed to be in DNX? If that's the case, since DNX is being retired, perhaps we should test this with dotnet CLI, and file bug in dotnet/cli repo. cc @anurse |
OS X, Mono. builder.GetBasePath() returns
.
. Same code run on CoreCLR returns an absolute path.This breaks
builder.Build().ReloadOnChanged("appsettings.json")
in the templates.The text was updated successfully, but these errors were encountered: