Skip to content

Commit

Permalink
Create directory before trying to create appsettings.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Mbucari committed Aug 28, 2023
1 parent 88c35e2 commit f86c77a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/LibationFileManager/Configuration.LibationFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ private static string getOrCreateAppsettingsFile()
{
try
{
Directory.CreateDirectory(Path.GetDirectoryName(appsettingsFile)!);
File.WriteAllText(appsettingsFile, endingContents);
return appsettingsFile;
}
Expand Down

0 comments on commit f86c77a

Please sign in to comment.