Skip to content

Commit 4078777

Browse files
Removed warning about System.dll
1 parent d421ab9 commit 4078777

4 files changed

Lines changed: 3 additions & 1 deletion

File tree

HooksInjector/ScriptsCompiler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ public string CompileScript(string scriptFile)
4242

4343
foreach (var file in Directory.GetFiles(_managedFolder))
4444
{
45-
if (file.EndsWith(".dll") && !file.Contains("msc"))
45+
if (file.EndsWith(".dll") && !file.Contains("msc") && !file.Contains(("System")))
4646
{
4747
compilerParams.ReferencedAssemblies.Add(file);
48+
compilerParams.ReferencedAssemblies.Add("System.Core.dll");
49+
4850
}
4951
}
5052

512 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.

Output/HooksInjector.exe

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)