Skip to content

Commit 5f365f4

Browse files
Added docs on SentryCreateRelease and SentrySetCommits (#10905)
1 parent 677af1c commit 5f365f4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/platforms/dotnet/common/configuration/msbuild.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ if you only want these features enabled in a GitHub Actions CI workflow, you cou
100100
Enable the features you wish to use.
101101
-->
102102
103+
<!-- Automatically creates a release when building your application. -->
104+
<SentryCreateRelease>true</SentryCreateRelease>
105+
106+
<!-- Automatically associates commits with the release. -->
107+
<SentrySetCommits>true</SentrySetCommits>
108+
109+
<!-- Optionally provide explicit flags to the set-commits command -->
110+
<SentrySetCommitOptions>--local</SentrySetCommitOptions>
111+
103112
<!-- Sends symbols to Sentry, enabling symbolication of stack traces. -->
104113
<SentryUploadSymbols>true</SentryUploadSymbols>
105114
@@ -155,6 +164,30 @@ The URL to your Sentry server. Required only if self-hosting Sentry. (Do not use
155164

156165
There are a few additional properties available to control the Sentry CLI:
157166

167+
<ConfigKey name="SentryCreateRelease">
168+
169+
Enable to automatically create release when building your application. Defaults to `false` (disabled).
170+
171+
Sentry will try to determine the release version automatically by checking the following sources in order:
172+
1. The `SENTRY_RELEASE` environment variable, if set
173+
2. The `AssemblyInformationalVersionAttribute`, if defined
174+
3. The version of the entry assembly for the project
175+
4. The version suggested by running `sentry-cli releases propose-version`
176+
177+
</ConfigKey>
178+
179+
<ConfigKey name="SentrySetCommits">
180+
181+
Enable `SentrySetCommits` to automatically [associate commits with the release](https://docs.sentry.io/cli/releases/#commit-integration).
182+
183+
</ConfigKey>
184+
185+
<ConfigKey name="SentrySetCommitOptions">
186+
187+
By default, when `SentrySetCommits` is enabled, the SDK will set commits with the `--auto` flag. The optional `SentrySetCommitOptions` property allows you to override this to provide whatever flags you want to the `set-commits` CLI command.
188+
189+
</ConfigKey>
190+
158191
<ConfigKey name="SentryUploadSymbols">
159192

160193
Controls uploading symbols to Sentry during the build. Defaults to `false` (disabled).

0 commit comments

Comments
 (0)