From a8fa11b784296ff2820bc5aa6068064396518c85 Mon Sep 17 00:00:00 2001 From: Georg Dangl Date: Mon, 3 Jul 2023 10:02:46 +0200 Subject: [PATCH] Fix BCF checktool invocation --- build/Build.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/Build.cs b/build/Build.cs index b9375c1f..3234a29d 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -14,12 +14,12 @@ class Build : NukeBuild [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")] readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release; - [PackageExecutable("bcf-tool.CommandLine", "tools/net5.0/bcf-tool.dll")] Tool BcfTool; - private string BcfToolPath => System.IO.Path.GetDirectoryName(ToolPathResolver.GetPackageExecutable("bcf-tool.CommandLine", "tools/net5.0/bcf-tool.dll")); + [NuGetPackage("bcf-tool.CommandLine", "tools/net5.0/bcf-tool.dll")] Tool BcfTool; Target CheckTestCases => _ => _ .Executes(() => { - BcfTool($"check -q -r v3.0 \"{RootDirectory}\"", workingDirectory: BcfToolPath); + var bcfCheckToolPath = NuGetToolPathResolver.GetPackageExecutable("bcf-tool.CommandLine", "tools/net5.0/bcf-tool.dll"); + BcfTool($"check -q -r v3.0 \"{RootDirectory}\"", workingDirectory: System.IO.Path.GetDirectoryName(bcfCheckToolPath)); }); }