Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix Directory.Build.targets when using SentryNoMobile.slnf
#skip-changelog
  • Loading branch information
jamescrosswell committed Jun 29, 2025
commit 1e9d22bed0767cbdd1c32d652edf1e7f964fc75c
4 changes: 2 additions & 2 deletions samples/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<Target Name="GenerateSharedDsnConstant"
BeforeTargets="BeforeCompile"
Condition=" '$(SENTRY_DSN)' != '' and '$(PlatformIsMobile)' == 'true'">
Condition="'$(SENTRY_DSN)' != ''">

<Message Text="Generating shared EnvironmentVariables.g.cs with embedded DSN..." Importance="High" />

Expand All @@ -25,7 +25,7 @@ namespace Sentry.Samples%3B
internal static class EnvironmentVariables
{
/// &lt;summary&gt;
/// To make things easier for the SDK maintainers we have a custom build target that writes the
/// To make things easier for the SDK maintainers, we have a custom build target that writes the
/// SENTRY_DSN environment variable into an EnvironmentVariables class that is available for mobile
/// targets. This allows us to share one DSN defined in the ENV across desktop and mobile samples.
/// Generally, you won't want to do this in your own mobile projects though - you should set the DSN
Expand Down
Loading