8 Replies
Output:
Expected output:
/home/gumbarros/Projects/jjmasterdata/appsettings.json
"/../"
can't be a valid starting path
You probably want Path.Join(builder.Environment.ContentRootPath, "..", "..");
Path.Combine
does weird stuff when one of the parts starts with /
as well, that's why we now have Path.Join
. But use ".."
either way, as @Ero didPath.Join
is .NET7 tho iircSolved, thanks