Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5ec578

Browse files
authored
Merge pull request #2763 from m-rsha/dotnet-output
future-proof dotnet build command
2 parents 8afe595 + 8db5aaf commit f5ec578

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pre_commit/languages/dotnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ def install_environment(
6161
helpers.assert_no_additional_deps('dotnet', additional_dependencies)
6262

6363
envdir = helpers.environment_dir(prefix, ENVIRONMENT_DIR, version)
64-
build_dir = 'pre-commit-build'
64+
build_dir = prefix.path('pre-commit-build')
6565

6666
# Build & pack nupkg file
6767
helpers.run_setup_cmd(
6868
prefix,
6969
(
7070
'dotnet', 'pack',
7171
'--configuration', 'Release',
72-
'--output', build_dir,
72+
'--property', f'PackageOutputPath={build_dir}',
7373
),
7474
)
7575

0 commit comments

Comments
 (0)