Skip to content

Commit 79dbfc9

Browse files
Update heroku/buildpacks-dotnet to v0.3.0 (#49)
* Update DOTNET_CNB_VERSION version to 0.3.0 * Update test to reflect artifacts path changes Introduced in heroku/buildpacks-dotnet#186 * Update changelog PR links --------- Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com> Co-authored-by: Rune Soerensen <[email protected]>
1 parent b99b78f commit 79dbfc9

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- The `sdk` element in detected `global.json` files is no longer required. The SDK version to install is now inferred from the solution/project files when `global.json` doesn't define SDK configuration. ([#49](https://github.com/heroku/heroku-buildpack-dotnet/pull/49))
8+
- The buildpack will now set `--artifacts-path` to a temporary directory during `dotnet publish`. This change reduces the number of unused, duplicated and/or intermediate files in the app directory. Published output for each project is still written to the same location relative to the the project directory (`bin/publish`, as configured using the `PublishDir` property). ([#49](https://github.com/heroku/heroku-buildpack-dotnet/pull/49))
9+
510
## [v7] - 2025-02-12
611

712
### Added

bin/compile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -euo pipefail
77
BUILD_DIR="${1}"
88
ENV_DIR="${3}"
99

10-
DOTNET_CNB_VERSION="0.2.2"
10+
DOTNET_CNB_VERSION="0.3.0"
1111

1212
BUILDPACK_DIR=$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)
1313

spec/hatchet/buildpack_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
remote: Installing SDK
2323
remote: -----> Publish solution
2424
remote: Using `Release` build configuration
25-
remote: Running `dotnet publish /tmp/build_.*/foo.csproj --runtime linux-x64 "-p:PublishDir=bin/publish"`
25+
remote: Running `dotnet publish /tmp/build_.*/foo.csproj --runtime linux-x64 "-p:PublishDir=bin/publish" --artifacts-path /tmp/build_artifacts`
2626
remote:
2727
remote: Determining projects to restore...
2828
remote: Restored /tmp/build_.*/foo.csproj .*
29-
remote: foo -> /tmp/build_.*/bin/Release/net8.0/linux-x64/foo.dll
29+
remote: foo -> /tmp/build_artifacts/bin/foo/release_linux-x64/foo.dll
3030
remote: foo -> /tmp/build_.*/bin/publish/
3131
remote:
3232
remote: Done .*

0 commit comments

Comments
 (0)