diff --git a/src/ParkitectNexus.Data/Assets/Modding/ModCompiler.cs b/src/ParkitectNexus.Data/Assets/Modding/ModCompiler.cs
index 9c88ef2..feddb06 100644
--- a/src/ParkitectNexus.Data/Assets/Modding/ModCompiler.cs
+++ b/src/ParkitectNexus.Data/Assets/Modding/ModCompiler.cs
@@ -26,23 +26,6 @@ namespace ParkitectNexus.Data.Assets.Modding
{
public class ModCompiler : IModCompiler
{
- ///
- /// Assemblies provided by the mono runtime.
- ///
- private static readonly string[] SystemAssemblies =
- {
- "System", "System.Core", "System.Data", "System.Xml",
- "System.Xml.Linq", "System.Data.DataSetExtensions", "System.Net.Http"
- };
-
- ///
- /// References ignored during compilation.
- ///
- private static readonly string[] IgnoredAssemblies =
- {
- "Microsoft.CSharp"
- };
-
private readonly ILogger _log;
private readonly IParkitect _parkitect;
@@ -270,27 +253,13 @@ private string ResolveAssembly(IModAsset[] dependencies, string assemblyName)
var dllName = $"{assemblyName}.dll";
- if (SystemAssemblies.Contains(assemblyName))
- return dllName;
-
- if (IgnoredAssemblies.Contains(assemblyName))
- return null;
-
-// var modPath = Path.Combine(InstallationPath, BaseDir ?? "", dllName);
-// if (File.Exists(Path.Combine(modPath)))
-// return modPath;
-
var managedAssemblyNames =
Directory.GetFiles(_parkitect.Paths.DataManaged, "*.dll").Select(Path.GetFileName).ToArray();
if (managedAssemblyNames.Contains(dllName))
return Path.Combine(_parkitect.Paths.DataManaged, dllName);
-// if (SystemAssemblies.Contains(assemblyName))
-// return dllName;
-
return null;
- //throw new Exception($"Failed to resolve referenced assembly '{assemblyName}'");
}
}
}