Add code to automatically delete the bad DLL

This commit is contained in:
John Gross
2020-04-24 19:27:20 -07:00
parent c1632b6b20
commit bcb921cd9d

View File

@@ -24,8 +24,6 @@ namespace Torch.Server
[STAThread] [STAThread]
public static void Main(string[] args) public static void Main(string[] args)
{ {
Target.Register<FlowDocumentTarget>("FlowDocument"); Target.Register<FlowDocumentTarget>("FlowDocument");
//Ensures that all the files are downloaded in the Torch directory. //Ensures that all the files are downloaded in the Torch directory.
var workingDir = new FileInfo(typeof(Program).Assembly.Location).Directory.ToString(); var workingDir = new FileInfo(typeof(Program).Assembly.Location).Directory.ToString();
@@ -36,6 +34,7 @@ namespace Torch.Server
var badDlls = new[] var badDlls = new[]
{ {
"System.Security.Principal.Windows.dll", "System.Security.Principal.Windows.dll",
"VRage.Platform.Windows.dll"
}; };
try try