fix: specify the current directory as a startup directory
This commit is contained in:
parent
e6cc9437d5
commit
788103c8a5
@ -23,6 +23,8 @@ public class Program
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Configuration.AddConfiguration(ConfigureEnvironment());
|
||||
builder.Configuration.AddJsonFile(Settings.FilePath, optional: true, reloadOnChange: true);
|
||||
|
Loading…
Reference in New Issue
Block a user