mirror of
https://github.com/ppy/osu.git
synced 2025-03-14 05:47:20 +08:00
Seperate the compile from restoring.
This commit is contained in:
parent
ead2e38882
commit
3870980f3e
14
build.cake
14
build.cake
@ -16,11 +16,17 @@ var osuSolution = new FilePath("./osu.sln");
|
||||
// TASKS
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Task("Restore")
|
||||
.Does(() => {
|
||||
DotNetCoreRestore(osuSolution.FullPath);
|
||||
});
|
||||
|
||||
Task("Compile")
|
||||
.IsDependentOn("Restore")
|
||||
.Does(() => {
|
||||
DotNetCoreBuild(osuSolution.FullPath, new DotNetCoreBuildSettings {
|
||||
Framework = framework,
|
||||
Configuration = configuration
|
||||
Configuration = configuration,
|
||||
NoRestore = true,
|
||||
});
|
||||
});
|
||||
|
||||
@ -42,10 +48,6 @@ Task("InspectCode")
|
||||
.IsDependentOn("Compile")
|
||||
.Does(() => {
|
||||
var nVikaToolPath = GetFiles("./tools/NVika.MSBuild.*/tools/NVika.exe").First();
|
||||
|
||||
DotNetCoreRestore(osuSolution.FullPath, new DotNetCoreRestoreSettings {
|
||||
Verbosity = DotNetCoreVerbosity.Quiet
|
||||
});
|
||||
|
||||
InspectCode(osuSolution, new InspectCodeSettings {
|
||||
CachesHome = "inspectcode",
|
||||
|
Loading…
x
Reference in New Issue
Block a user