Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dotnet embedded sources #6179

Merged
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,26 @@ needs to be uploaded alongside the debug information files.
The recommended way to do this is by using `sentry-cli`.
See [Creating Source Bundles](/product/cli/dif/#creating-source-bundles) for more information.

<PlatformSection supported={["dotnet"]} notSupported={["unity"]}>
<PlatformSection supported={["dotnet"]}>

<Note>

<PlatformSection notSupported={["unity"]}>

For .NET projects, you can [configure MSBuild](../../../configuration/msbuild/) to
call `sentry-cli` automatically. Enable the `SentryUploadSources` property to
create and upload source bundles automatically while uploading symbols.

</PlatformSection>

Alternatively, you can embedded source code directly into .NET Portable PDB files by using the
[`EmbedAllSources`](https://github.com/dotnet/sourcelink/blob/main/docs/README.md#embedallsources)
property in your project file. After the PDBs have been uploaded to Sentry, the sources will be
extracted from them automatically.

Also note that the similar `EmbedUntrackedSources` option is not yet supported, but may be added
in the future. Referer to [this issue](https://github.com/getsentry/symbolic/issues/735) for details.

</Note>

</PlatformSection>
Expand Down