Allow creating releases and uploading commits from MSBuild#3462
Allow creating releases and uploading commits from MSBuild#3462bitsandfoxes merged 11 commits intomainfrom
Conversation
bitsandfoxes
left a comment
There was a problem hiding this comment.
This looks really great! What I don't get: How do we make sure the release reported by the SDK at runtime matches the release created at built time?
Users can set the <SentryRelease> but that has no affect on the build artifact, right? Should it?
|
Can we remove the leading |
|
Just to confirm this: If I were to set a |
Possibly. I wanted people to be able to pass anything/everything that they could via the CLI, which could be:
So yeah, at least all of those examples start with a One other possibility is they want to supply multiple parameters though... so:
In that case, what would we do? From the build settings would we drop the I figured it was better if we just let them supply the arguments as they would if they were using the CLI. |
I don't think it does. Similarly, if you set If you want those things to match, it's probably best not to set the
Just what's done by the CLI basically. We could rename the build property to |
|
Renamed the |
bitsandfoxes
left a comment
There was a problem hiding this comment.
That's looking awesome!
No not documented yet. It is demonstrated in the samples but |

Resolves #3058
Details
There are a couple of extra build properties now:
SentryCreateReleaseSentrySetCommitsSentryCreateRelease
If you set this to true then the Sentry SDK attempts to use the Sentry CLI to automatically create a release when building your project.
The release version can be supplied via a separatethe SDK will infer the version automatically from the ApplicationId, AppManifest, InformationalVersion, AssembyIdentity or the commit hash.SentryReleasebuild property. If noSentryReleaseproperty is provided thenFor example:
SentrySetCommits
If this property is set then the Sentry SDK will automatically associate commits with the release. By default, the SDK will set commits with the
--autoflag but you can override this to provide whatever flags you want via the optionalSentrySetCommitOptionsproperty.For example: