Remove ni.dll deletion hack
This commit is contained in:
parent
c948605111
commit
864fbbb380
|
|
@ -87,15 +87,6 @@ var buildTarget = "compile"
|
||||||
Log.Info(string.Format("{0} - {1}", repos.Key, string.Join(", ", repos)));
|
Log.Info(string.Format("{0} - {1}", repos.Key, string.Join(", ", repos)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hack: Delete cross-gen binaries to prevent csc.exe from AVE
|
|
||||||
var cliDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Microsoft", "dotnet", "cli", "bin");
|
|
||||||
foreach (var file in Directory.GetFiles(cliDirectory, "*.ni.dll").Where(f => !Path.GetFileName(f).StartsWith("mscorlib")))
|
|
||||||
{
|
|
||||||
File.Move(file, Path.ChangeExtension(file, ".bak"));
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
foreach (var batch in batchedRepos)
|
foreach (var batch in batchedRepos)
|
||||||
{
|
{
|
||||||
Parallel.ForEach(batch, new ParallelOptions { MaxDegreeOfParallelism = 4 }, repo =>
|
Parallel.ForEach(batch, new ParallelOptions { MaxDegreeOfParallelism = 4 }, repo =>
|
||||||
|
|
@ -141,14 +132,6 @@ var buildTarget = "compile"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
foreach (var file in Directory.GetFiles(cliDirectory, "*.ni.bak"))
|
|
||||||
{
|
|
||||||
File.Move(file, Path.ChangeExtension(file, ".dll"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#smoke-test-mono .pull .fix-project-json .change-default-build-target-to-verify .build-all
|
#smoke-test-mono .pull .fix-project-json .change-default-build-target-to-verify .build-all
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue