Skip to content

Commit

Permalink
Fix BCF checktool invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Jul 3, 2023
1 parent e79d0d6 commit a8fa11b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
}

0 comments on commit a8fa11b

Please sign in to comment.