Skip to content

Commit

Permalink
future-proof dotnet build command
Browse files Browse the repository at this point in the history
  • Loading branch information
m-rsha committed Feb 18, 2023
1 parent 8afe595 commit cf9eb68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pre_commit/languages/dotnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,17 @@ def install_environment(
helpers.assert_no_additional_deps('dotnet', additional_dependencies)

envdir = helpers.environment_dir(prefix, ENVIRONMENT_DIR, version)
build_dir = 'pre-commit-build'
build_dir = os.path.abspath(
os.path.join(prefix.prefix_dir, 'pre-commit-build'),
)

# Build & pack nupkg file
helpers.run_setup_cmd(
prefix,
(
'dotnet', 'pack',
'--configuration', 'Release',
'--output', build_dir,
'--property', f'PackageOutputPath={build_dir}',
),
)

Expand Down

0 comments on commit cf9eb68

Please sign in to comment.