mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 09:16:43 +00:00
Upstream OOXML-Validator has added support for building with .Net 8.0 in commit 29af1086b5c78b6a213e70d2e1cb8da2a8e5b876. But that means OOXML-Validator can now be built for both .Net 6.0 and 8.0, so we need to pick which one we want when running, otherwise we get an error: ``` Unable to run your project Your project targets multiple frameworks. Specify which framework to run using '--framework'. ``` Signed-off-by: Edwin Török <edwin@etorok.net>
11 lines
260 B
Bash
11 lines
260 B
Bash
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
(for i in "$@"; do
|
|
dotnet run --configuration=Release --framework=net8.0 --no-build --no-restore --project OOXML-Validator/OOXMLValidatorCLI -- "${i}" -r
|
|
done) >validation
|
|
json_reformat -s <validation
|
|
|
|
[ $(cat validation | wc -c) = 2 ]
|