Skip to content

Commit a5e9b55

Browse files
authored
Generate XML documentation on build and add to it NuGet package (#1878)
also fixed issues with xml docs in the code implements #1876
1 parent 93631af commit a5e9b55

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

src/runtime/AssemblyManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public static bool IsValidNamespace(string name)
334334
}
335335

336336
/// <summary>
337-
/// Returns an IEnumerable<string> containing the namepsaces exported
337+
/// Returns an enumerable collection containing the namepsaces exported
338338
/// by loaded assemblies in the current app domain.
339339
/// </summary>
340340
public static IEnumerable<string> GetNamespaces ()

src/runtime/Python.Runtime.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
<IncludeSymbols>true</IncludeSymbols>
2424
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2525

26+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
27+
2628
<AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile>
2729
<SignAssembly>true</SignAssembly>
2830

src/runtime/Runtime.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ internal static int GetRun()
9999
internal static bool HostedInPython;
100100
internal static bool ProcessIsTerminating;
101101

102+
/// <summary>
102103
/// Initialize the runtime...
103104
/// </summary>
104105
/// <remarks>Always call this method from the Main thread. After the

src/runtime/Types/ArrayObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static IntPtr AllocateBufferProcs()
520520
#endregion
521521

522522
/// <summary>
523-
/// <see cref="TypeManager.InitializeSlots(IntPtr, Type, SlotsHolder)"/>
523+
/// <see cref="TypeManager.InitializeSlots(PyType, Type, SlotsHolder?)"/>
524524
/// </summary>
525525
public static void InitializeSlots(PyType type, ISet<string> initialized, SlotsHolder slotsHolder)
526526
{

src/runtime/Types/EventBinding.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public static NewReference nb_inplace_subtract(BorrowedReference ob, BorrowedRef
7070
return new NewReference(ob);
7171
}
7272

73-
/// </summary>
7473
public static int tp_descr_set(BorrowedReference ds, BorrowedReference ob, BorrowedReference val)
7574
=> EventObject.tp_descr_set(ds, ob, val);
7675

src/runtime/Types/ReflectedClrType.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ internal ReflectedClrType(BorrowedReference original) : base(original) { }
2222
/// </summary>
2323
/// <remarks>
2424
/// Returned <see cref="ReflectedClrType"/> might be partially initialized.
25-
/// If you need fully initialized type, use <see cref="GetOrInitialize(ClassBase, Type)"/>
2625
/// </remarks>
2726
public static ReflectedClrType GetOrCreate(Type type)
2827
{

0 commit comments

Comments
 (0)