Skip to content

Create a release-ish task in .NET Core apps#1418

Merged
bwateratmsft merged 1 commit intomasterfrom
bmw/release
Nov 12, 2019
Merged

Create a release-ish task in .NET Core apps#1418
bwateratmsft merged 1 commit intomasterfrom
bmw/release

Conversation

@bwateratmsft
Copy link
Collaborator

@bwateratmsft bwateratmsft commented Nov 12, 2019

It became necessary to add an enableDebugging flag like Node had. Otherwise, we map /src, /app, and others. /app in particular prevents the release mode from working because we overwrite the /app folder, containing the relevant binary directly, with the project folder on the host machine, which contains the (debug, aka wrong) binary a few folders down (bin/Debug/netcoreapp3.0 or similar).

The SSL-related folders still need to be mapped, along with ASPNETCORE_ENVIRONMENT=Development in order to make SSL work. In a real production build, they would need to map in user secrets differently.

The diff is super weird; we're just guarding several volumes inside if (helperOptions.enableDebugging).

@bwateratmsft bwateratmsft added this to the 0.9.0 milestone Nov 12, 2019
@bwateratmsft bwateratmsft requested a review from a team as a code owner November 12, 2019 20:43
@bwateratmsft bwateratmsft merged commit b2324ea into master Nov 12, 2019
@bwateratmsft bwateratmsft deleted the bmw/release branch November 12, 2019 21:44
@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants