Skip to content

Commit 8b196f0

Browse files
committed
Generate documentation XML when building; fix errors.
1 parent c0058d2 commit 8b196f0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<LangVersion>8.0</LangVersion>
1818
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1919
<EmbedUntrackedSources>true</EmbedUntrackedSources>
20+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
21+
<NoWarn>1591</NoWarn>
2022
</PropertyGroup>
2123

2224
<ItemGroup>

src/MySqlConnector/Core/ICancellableCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal static class ICancellableCommandExtensions
2626
public static int GetNextId() => Interlocked.Increment(ref s_id);
2727

2828
/// <summary>
29-
/// Causes the effective command timeout to be reset back to the value specified by <see cref="CommandTimeout"/>.
29+
/// Causes the effective command timeout to be reset back to the value specified by <see cref="ICancellableCommand.CommandTimeout"/>.
3030
/// </summary>
3131
/// <remarks>As per the <a href="https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtimeout.aspx">MSDN documentation</a>,
3232
/// "This property is the cumulative time-out (for all network packets that are read during the invocation of a method) for all network reads during command

src/MySqlConnector/Utilities/Utility.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,12 @@ public static ArraySegment<T> Slice<T>(this ArraySegment<T> arraySegment, int in
215215
new ArraySegment<T>(arraySegment.Array!, arraySegment.Offset + index, length);
216216

217217
/// <summary>
218-
/// Returns a new <see cref="byte[]"/> that is a slice of <paramref name="input"/> starting at <paramref name="offset"/>.
218+
/// Returns a new <see cref="T:byte[]"/> that is a slice of <paramref name="input"/> starting at <paramref name="offset"/>.
219219
/// </summary>
220220
/// <param name="input">The array to slice.</param>
221221
/// <param name="offset">The offset at which to slice.</param>
222-
/// <returns>A new <see cref="byte[]"/> that is a slice of <paramref name="input"/> from <paramref name="offset"/> to the end.</returns>
222+
/// <param name="length">The length of the slice.</param>
223+
/// <returns>A new <see cref="T:byte[]"/> that is a slice of <paramref name="input"/> from <paramref name="offset"/> to the end.</returns>
223224
public static byte[] ArraySlice(byte[] input, int offset, int length)
224225
{
225226
if (offset == 0 && length == input.Length)

0 commit comments

Comments
 (0)