Allow running inspect core with cakeclr.

Sadly window only because nvika and resharper cmd tools require net45.
This commit is contained in:
miterosan 2018-08-05 22:24:52 +02:00
parent cefabf14d9
commit fce2be9dc7
1 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#addin "nuget:?package=CodeFileSanity"
#addin "nuget:?package=JetBrains.ReSharper.CommandLineTools"
#tool "nuget:?package=NVika.MSBuild"
#addin "nuget:?package=CodeFileSanity"
var NVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
#tool "nuget:?package=NuGet.CommandLine"
///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
@ -38,13 +38,17 @@ Task("Test")
});
});
Task("Restore Nuget")
.Does(() => NuGetRestore(osuSolution));
// windows only because both inspectcore and nvike depend on net45
// will be ignored on linux
Task("InspectCode")
.IsDependentOn("Restore Nuget")
.WithCriteria(IsRunningOnWindows())
.IsDependentOn("Compile")
.Does(() => {
var NVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
var NugetToolPath = GetFiles("./tools/NuGet.CommandLine.*/tools/NuGet.exe").First();
StartProcess(NugetToolPath, $"restore {osuSolution}");
InspectCode(osuSolution, new InspectCodeSettings {
CachesHome = "inspectcode",
OutputFile = "inspectcodereport.xml",