Skip to content

Commit 5aab184

Browse files
Merge branch 'MonoTest'
2 parents c09c2d1 + a1c0720 commit 5aab184

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

HooksInjector/ScriptsCompiler.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public ScriptsCompiler(string pluginsDirectory, string managedFolder)
2828

2929
public string CompileScript(string scriptFile)
3030
{
31-
CSharpCodeProvider provider = new CSharpCodeProvider();
31+
32+
CSharpCodeProvider provider = new CSharpCodeProvider();
3233

3334
string outputPath = "Plugins/" + new FileInfo(scriptFile).Name.Replace(".cs", ".dll");
3435
CompilerParameters compilerParams = new CompilerParameters
@@ -42,7 +43,7 @@ public string CompileScript(string scriptFile)
4243

4344
foreach (var file in Directory.GetFiles(_managedFolder))
4445
{
45-
if (file.EndsWith(".dll") && !file.Contains("msc") && !file.Contains(("System")))
46+
if (file.EndsWith(".dll") && !file.Contains("msc"))
4647
{
4748
compilerParams.ReferencedAssemblies.Add(file);
4849
compilerParams.ReferencedAssemblies.Add("System.Core.dll");

0 commit comments

Comments
 (0)