diff --git a/MemorySnapshotAnalyzer/MemorySnapshotAnalyzer.csproj b/MemorySnapshotAnalyzer/MemorySnapshotAnalyzer.csproj
index 4997d09..13de4b3 100644
--- a/MemorySnapshotAnalyzer/MemorySnapshotAnalyzer.csproj
+++ b/MemorySnapshotAnalyzer/MemorySnapshotAnalyzer.csproj
@@ -16,7 +16,7 @@
Always
-
+
Always
diff --git a/MemorySnapshotAnalyzer/Program.cs b/MemorySnapshotAnalyzer/Program.cs
index 5e697e4..5cf3897 100644
--- a/MemorySnapshotAnalyzer/Program.cs
+++ b/MemorySnapshotAnalyzer/Program.cs
@@ -9,8 +9,6 @@
using MemorySnapshotAnalyzer.Commands;
using MemorySnapshotAnalyzer.UnityBackend;
using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using System;
static class Program
@@ -18,8 +16,10 @@ static class Program
[STAThread]
public static int Main(string[] args)
{
- using IHost host = Host.CreateDefaultBuilder(args).Build();
- IConfiguration configuration = host.Services.GetRequiredService();
+ IConfiguration configuration = new ConfigurationBuilder()
+ .SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
+ .AddJsonFile("appsettings.json", optional: true)
+ .Build();
using Repl repl = new(configuration);
diff --git a/run.sh b/run.sh
index 9786206..afad8ca 100755
--- a/run.sh
+++ b/run.sh
@@ -4,6 +4,4 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
-cp MemorySnapshotAnalyzer/appsettings.json .
-cp MemorySnapshotAnalyzer/thirdparty.rcl .
exec dotnet run --project MemorySnapshotAnalyzer/MemorySnapshotAnalyzer.csproj