Create directory before trying to create appsettings.json
This commit is contained in:
parent
88c35e2a56
commit
f86c77a546
@ -108,6 +108,7 @@ namespace LibationFileManager
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Directory.CreateDirectory(Path.GetDirectoryName(appsettingsFile)!);
|
||||||
File.WriteAllText(appsettingsFile, endingContents);
|
File.WriteAllText(appsettingsFile, endingContents);
|
||||||
return appsettingsFile;
|
return appsettingsFile;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user