future-proof dotnet build command

see https://github.com/dotnet/sdk/issues/30624#issuecomment-1435457318
This commit is contained in:
marsha 2023-02-17 21:30:46 -06:00
parent 8afe5958e6
commit 8db5aaf4f3

View file

@ -61,7 +61,7 @@ def install_environment(
helpers.assert_no_additional_deps('dotnet', additional_dependencies) helpers.assert_no_additional_deps('dotnet', additional_dependencies)
envdir = helpers.environment_dir(prefix, ENVIRONMENT_DIR, version) envdir = helpers.environment_dir(prefix, ENVIRONMENT_DIR, version)
build_dir = 'pre-commit-build' build_dir = prefix.path('pre-commit-build')
# Build & pack nupkg file # Build & pack nupkg file
helpers.run_setup_cmd( helpers.run_setup_cmd(
@ -69,7 +69,7 @@ def install_environment(
( (
'dotnet', 'pack', 'dotnet', 'pack',
'--configuration', 'Release', '--configuration', 'Release',
'--output', build_dir, '--property', f'PackageOutputPath={build_dir}',
), ),
) )