Problem Statement
Our docs here:
https://docs.sentry.io/platforms/dotnet/configuration/msbuild/
... assume you are building the project without Docker. If you are building with Docker, then there are some gotchas that should be documented.
Solution Brainstorm
Specifically, we need to show:
- Passing the
SENTRY_AUTH_TOKEN via docker build, then importing it with ARG and using it with ENV in the dockerfile.
- In a multistage dockerfile with separate stages for
dotnet build and dotnet publish, we should pass -p:UseSentryCLI=false in the publish stage, so that Sentry CLI is only used during the build stage.
Problem Statement
Our docs here:
https://docs.sentry.io/platforms/dotnet/configuration/msbuild/
... assume you are building the project without Docker. If you are building with Docker, then there are some gotchas that should be documented.
Solution Brainstorm
Specifically, we need to show:
SENTRY_AUTH_TOKENviadocker build, then importing it withARGand using it withENVin the dockerfile.dotnet buildanddotnet publish, we should pass-p:UseSentryCLI=falsein the publish stage, so that Sentry CLI is only used during the build stage.