Skip to content

Commit

Permalink
Fixing schema verification environment (buildingSMART#83)
Browse files Browse the repository at this point in the history
* Attempt at tool fixing

* Updated build packages.
  • Loading branch information
CBenghi authored Sep 13, 2022
1 parent adfd994 commit e267ba8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ class Build : NukeBuild
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;

[PackageExecutable("ids-tool.CommandLine", "tools/net5.0/ids-tool.dll")] Tool BcfTool;
private string BcfToolPath => System.IO.Path.GetDirectoryName(ToolPathResolver.GetPackageExecutable("ids-tool.CommandLine", "tools/net5.0/ids-tool.dll"));
[PackageExecutable("ids-tool.CommandLine", "tools/net6.0/ids-tool.dll")] Tool BcfTool;
private string BcfToolPath => System.IO.Path.GetDirectoryName(ToolPathResolver.GetPackageExecutable("ids-tool.CommandLine", "tools/net6.0/ids-tool.dll"));

Target CheckTestCases => _ => _
.Executes(() =>
{
var schemaFile = Path.Combine(
RootDirectory,
"Development/0.6/ids_06.xsd"
"Development/0.9/ids_09.xsd"
);
var inputFolder = Path.Combine(
RootDirectory,
"Development/0.6"
"Development/0.9"
);
var arguments = $"check \"{inputFolder}\" -x \"{schemaFile}\"";
BcfTool(arguments, workingDirectory: BcfToolPath);
Expand Down
4 changes: 2 additions & 2 deletions build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ids-tool.CommandLine" Version="1.0.4" />
<PackageReference Include="Nuke.Common" Version="6.0.3" />
<PackageReference Include="ids-tool.CommandLine" Version="1.0.7" />
<PackageReference Include="Nuke.Common" Version="6.2.1" />
</ItemGroup>

</Project>

0 comments on commit e267ba8

Please sign in to comment.