Added AppWindow

This commit is contained in:
TheXamlGuy
2024-09-26 20:39:05 +01:00
parent 5c535daed8
commit b0e1eb4cb4
3 changed files with 20 additions and 19 deletions
@@ -184,4 +184,17 @@ public static class IHostBuilderExtension
return builder;
}
public static IHostBuilder UseContentRoot(this IHostBuilder hostBuilder,
string contentRoot,
bool createDirectory)
{
if (createDirectory)
{
Directory.CreateDirectory(contentRoot);
}
hostBuilder.UseContentRoot(contentRoot);
return hostBuilder;
}
}