From dd681b7f504d48c2a2b8fc656b1dd1397cf5b67a Mon Sep 17 00:00:00 2001 From: Nice3point Date: Tue, 21 Dec 2021 20:35:45 +0300 Subject: [PATCH] Revert to msbuild --- Build/Build.Compile.cs | 11 +++++++---- RevitLookup/RevitLookup.csproj | 19 +++++++++---------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Build/Build.Compile.cs b/Build/Build.Compile.cs index 50d53b23a..14bf982ef 100644 --- a/Build/Build.Compile.cs +++ b/Build/Build.Compile.cs @@ -1,8 +1,8 @@ using Nuke.Common; using Nuke.Common.Tooling; -using Nuke.Common.Tools.DotNet; +using Nuke.Common.Tools.MSBuild; using Nuke.Common.Tools.VSWhere; -using static Nuke.Common.Tools.DotNet.DotNetTasks; +using static Nuke.Common.Tools.MSBuild.MSBuildTasks; partial class Build { @@ -30,8 +30,11 @@ static string GetMsBuildPath() } void CompileProject(string configuration, string toolPath) => - DotNetBuild(settings => settings + MSBuild(s => s + .SetTargets("Rebuild") .SetProcessToolPath(toolPath) .SetConfiguration(configuration) - .SetVerbosity(DotNetVerbosity.Minimal)); + .SetVerbosity(MSBuildVerbosity.Minimal) + .DisableNodeReuse() + .EnableRestore()); } \ No newline at end of file diff --git a/RevitLookup/RevitLookup.csproj b/RevitLookup/RevitLookup.csproj index f4ebc4807..201dd62c9 100644 --- a/RevitLookup/RevitLookup.csproj +++ b/RevitLookup/RevitLookup.csproj @@ -7,7 +7,6 @@ true true net48 - Debug;Release 2022 $(RevitVersion).0.3.1 @@ -26,18 +25,18 @@ - + - - + + - - + + @@ -47,13 +46,13 @@ $(RootDir)$(AssemblyName)\ - - + + - + - +