Skip to content

Commit

Permalink
hitting things with a hammer
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Feb 10, 2024
1 parent 373b4b7 commit 976cc19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions TASVideos/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,17 @@ public static async Task Main(string[] args)

var appSettings = services.GetRequiredService<AppSettings>();
var json = "App Settings: " + JsonSerializer.Serialize(appSettings, new JsonSerializerOptions { WriteIndented = true });

var userSecretsId = configuration2["UserSecretsId"];
var secretsPath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) +
$@"\AppData\Roaming\Microsoft\UserSecrets\{userSecretsId}\secrets.json";

json += "\n\n\n" + secretsPath;
System.IO.File.WriteAllText("/home/invariel/outputFile.txt", json);




await DbInitializer.InitializeDatabase(services);
}

Expand Down

0 comments on commit 976cc19

Please sign in to comment.