Skip to content

Commit a6564b7

Browse files
Added docs re automatic generation of AssemblyInformationalVersionAttribute (#11012)
1 parent b7222af commit a6564b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform-includes/set-release/dotnet.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ The SDK attempts to locate the release to attach to events sent to Sentry.
1313
The SDK will first check if there's a version set on the environment via `SENTRY_RELEASE` and use it as-is.
1414

1515
If no version is found, the SDK will look at the [entry assembly's](<https://msdn.microsoft.com/en-us/library/system.reflection.assembly.getentryassembly(v=vs.110).aspx>) `AssemblyInformationalVersionAttribute`, which accepts a string value and is often used to set a GIT commit hash. If that returns null, then the SDK will look at the default `AssemblyVersionAttribute`, which accepts the numeric version number. The resulting release will be in the format `<assembly-name>@<version-number>`.
16+
17+
<Note>
18+
An `AssemblyInformationalVersionAttribute` is included automatically in SDK-style projects with a default value of `"1.0.0.0"`. You can set the `Version` property in your project file to override this value or [disable it entirely](https://learn.microsoft.com/en-us/dotnet/standard/assembly/set-attributes-project-file#use-package-properties-as-assembly-attributes) by setting the `GenerateAssemblyInformationalVersionAttribute` property to `false`.
19+
</Note>

0 commit comments

Comments
 (0)