docs(dotnet): Document MSBuild Sentry CLI usage when building with Docker#17589
Draft
jamescrosswell wants to merge 2 commits intomasterfrom
Draft
docs(dotnet): Document MSBuild Sentry CLI usage when building with Docker#17589jamescrosswell wants to merge 2 commits intomasterfrom
jamescrosswell wants to merge 2 commits intomasterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Document the two Docker-specific gotchas when using Sentry CLI via MSBuild: passing SENTRY_AUTH_TOKEN as a build arg and promoting it to an ENV var, and using -p:UseSentryCLI=false in the publish stage of a multi-stage Dockerfile to avoid errors when project source is not present. Includes a complete multi-stage Dockerfile example for ASP.NET Core. Refs getsentry/sentry-dotnet#2420 Co-Authored-By: Claude <noreply@anthropic.com>
2af00b4 to
76d7457
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Adds a new "Building with Docker" section to the .NET MSBuild setup page, addressing the two Docker-specific gotchas documented in getsentry/sentry-dotnet#2420:
SENTRY_AUTH_TOKENsecurely as adocker build --build-arg, promote it to anENVvar in the build stage, and why bothARGandENVare required.dotnet publishstage with-p:UseSentryCLI=falseto avoid failures when project source isn't present in the publish context.Also adds a brief pointer to this new section from the existing CI/CD authentication bullet, so users reading about server builds are directed to the Docker guidance.
A complete multi-stage Dockerfile example (ASP.NET Core 8.0) is included.
Fixes getsentry/sentry-dotnet#2420
IS YOUR CHANGE URGENT?
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST