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

Add link to source link breaking change #9510

Merged
merged 1 commit into from
Dec 15, 2023
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
33 changes: 21 additions & 12 deletions xml/System.Reflection/AssemblyInformationalVersionAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,21 @@
<Docs>
<summary>Defines additional version information for an assembly manifest.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
The attribute defined by this class attaches additional version information to an assembly. If this attribute is applied to an assembly, the string it specifies can be obtained at run time by using the <xref:System.Windows.Forms.Application.ProductVersion%2A?displayProperty=nameWithType> property. The string is also used in the path and registry key provided by the <xref:System.Windows.Forms.Application.UserAppDataPath%2A?displayProperty=nameWithType> property and the <xref:System.Windows.Forms.Application.UserAppDataRegistry%2A?displayProperty=nameWithType> property. If the <xref:System.Reflection.AssemblyInformationalVersionAttribute> is not applied to an assembly, the version number specified by the <xref:System.Reflection.AssemblyVersionAttribute> attribute is used instead.

Although you can specify any text, a warning message appears on compilation if the string is not in the format used by the assembly version number, or if it is in that format but contains wildcard characters. This warning is harmless.

<format type="text/markdown"><![CDATA[

## Remarks

> [!NOTE]
> Starting with the .NET 8 SDK, commit information is included in this attribute's value. This behavior applies to projects that target any .NET version. For more information, see [Source Link included in the .NET SDK](/dotnet/core/compatibility/sdk/8.0/source-link).

The attribute defined by this class attaches additional version information to an assembly.

If the <xref:System.Reflection.AssemblyInformationalVersionAttribute> is not applied to an assembly, the version number specified by the <xref:System.Reflection.AssemblyVersionAttribute> attribute is used instead.

Although you can specify any text, a warning message appears on compilation if the string is not in the format used by the assembly version number, or if it is in that format but contains wildcard characters. This warning is harmless.

For Windows Forms apps, you can obtain the string this attribute specifies at run time by using the <xref:System.Windows.Forms.Application.ProductVersion?displayProperty=nameWithType> property. The string is also used in the path and registry key provided by the <xref:System.Windows.Forms.Application.UserAppDataPath?displayProperty=nameWithType> property and the <xref:System.Windows.Forms.Application.UserAppDataRegistry?displayProperty=nameWithType> property.

]]></format>
</remarks>
<related type="Article" href="/dotnet/standard/assembly/versioning">Assembly versioning</related>
Expand Down Expand Up @@ -122,11 +130,12 @@
<param name="informationalVersion">The assembly version information.</param>
<summary>Initializes a new instance of the <see cref="T:System.Reflection.AssemblyInformationalVersionAttribute" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

## Remarks
The informational version provides additional version information for an assembly, in string format. It is for informational purposes only and is not used at run time. Although you can specify any text, a warning message appears on compilation if the string is not in the format used by the assembly version number, or if it is in that format but contains wildcard characters. This warning is harmless.

<format type="text/markdown"><![CDATA[

## Remarks

The informational version provides additional version information for an assembly, in string format. It is for informational purposes only and is not used at run time. Although you can specify any text, a warning message appears on compilation if the string is not in the format used by the assembly version number, or if it is in that format but contains wildcard characters. This warning is harmless.

]]></format>
</remarks>
<related type="Article" href="/dotnet/standard/assembly/versioning">Assembly versioning</related>
Expand Down
Loading