Releases: smdn/Smdn.Reflection.ReverseGenerating
Releases · smdn/Smdn.Reflection.ReverseGenerating
Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks version 1.3.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-12-14 update assembly version
- 2023-12-14 add support for .NET 8.0
- 2023-12-14 migrate .NET 7.0 to .NET 8.0
- 2023-05-23 disable trimming
- 2023-05-23 suppress warning CA1031
- 2023-05-23 suppress warning CA1819
- 2023-05-23 empty RootNamespace
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
index d387217..59f8fe5 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
@@ -1,45 +1,45 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.2)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.3.0)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.2.2.0
-// InformationalVersion: 1.2.2+a9d051a724b045dfb618903230b079690849e937
+// AssemblyVersion: 1.3.0.0
+// InformationalVersion: 1.3.0+26ff166439449b3d7ec53cbaf3e1d66c2264a611
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
-// Smdn.Reflection.ReverseGenerating, Version=1.1.5.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating, Version=1.1.6.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
-// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.2.0.
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.3.0.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net8.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net8.0.apilist.cs
new file mode 100644
index 0000000..304b415
--- /dev/null
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net8.0.apilist.cs
@@ -0,0 +1,45 @@
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.3.0)
+// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
+// AssemblyVersion: 1.3.0.0
+// InformationalVersion: 1.3.0+26ff166439449b3d7ec53cbaf3e1d66c2264a611
+// TargetFramework: .NETCoreApp,Version=v8.0
+// Configuration: Release
+// Referenced assemblies:
+// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
+// Smdn.Reflection.ReverseGenerating, Version=1.1.6.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
+// System.Collections, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.Text.Encoding.Extensions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+#nullable enable annotations
+
+using Microsoft.Build.Framework;
+using Microsoft.Build.Utilities;
+
+namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
+ public class GenerateApiList : Task {
+ public GenerateApiList() {}
+
+ [Required]
+ public ITaskItem[]? Assemblies { get; set; }
+ public bool GenerateAssemblyInfo { get; set; }
+ public bool GenerateAttributeWithNamedArguments { get; set; }
+ public bool GenerateEmbeddedResources { get; set; }
+ public bool GenerateFullTypeName { get; set; }
+ public bool GenerateLanguagePrimitiveType { get; set; }
+ public string? GenerateMethodBody { get; set; }
+ public bool GenerateNullableAnnotations { get; set; }
+ public bool GenerateReferencedAssemblies { get; set; }
+ public bool GenerateStaticMembersFirst { get; set; }
+ public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
+ public bool GenerateValueWithDefaultLiteral { get; set; }
+ [Output]
+ public ITaskItem[]? GeneratedFiles { get; }
+
+ public override bool Execute() {}
+ }
+}
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.3.0.0.
+// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
index f6e05dd..93a6863 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
@@ -1,47 +1,47 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.2)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.3.0)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.2.2.0
-// InformationalVersion: 1.2.2+a9d051a724b045dfb618903230b079690849e937
+// AssemblyVersion: 1.3.0.0
+// InformationalVersion: 1.3.0+26ff166439449b3d7ec53cbaf3e1d66c2264a611
// TargetFramework: .NETCoreApp,Version=v3.1
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
-// Smdn.Reflection.ReverseGenerating, Version=1.1.5.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating, Version=1.1.6.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=4.1.2.0, Culture=neutr...
Smdn.Reflection.ReverseGenerating version 1.1.6
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-05-24 update assembly version
- 2023-05-24 add (Type|Member)DeclarationOptions.NullabilityInfoContextLockObject to support locking NullabilityInfoContext
- 2023-05-24 add overloads to CSharpFormatter.FormatParameter/FormatParameterList/FormatTypeName that accepts lock object for NullabilityInfoContext to make issue #20 avoidable
- 2023-05-22 disable trimming
- 2023-05-22 suppress warning CA1502 and CA1506
- 2023-05-22 avoid null reference
- 2023-05-22 empty RootNamespace
- 2023-03-27 add provisional workaround for TypeLoadException (see #31)
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
index c6b1b06..0aff2da 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
@@ -1,134 +1,134 @@
-// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.5)
+// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.6)
// Name: Smdn.Reflection.ReverseGenerating
-// AssemblyVersion: 1.1.5.0
-// InformationalVersion: 1.1.5+8b0234f9aa81d64e62185c0c566a560c630f934b
+// AssemblyVersion: 1.1.6.0
+// InformationalVersion: 1.1.6+407f242e4289093d014484d0f1940c407f03b605
// TargetFramework: .NETFramework,Version=v4.5
// Configuration: Release
// Referenced assemblies:
// Smdn.Fundamental.Reflection, Version=3.3.2.0, Culture=neutral
// System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
// mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
#nullable enable annotations
using System;
using System.Collections.Generic;
using System.Reflection;
using Smdn.Reflection;
using Smdn.Reflection.ReverseGenerating;
namespace Smdn.Reflection.ReverseGenerating {
public delegate bool AttributeTypeFilter(Type type, ICustomAttributeProvider attributeProvider);
public enum AttributeSectionFormat : int {
Discrete = 1,
List = 0,
}
public enum MethodBodyOption : int {
EmptyImplementation = 1,
None = 0,
ThrowNotImplementedException = 2,
ThrowNull = 3,
}
public static class CSharpFormatter {
public static string EscapeString(string s, bool escapeSingleQuote = false, bool escapeDoubleQuote = false) {}
public static string FormatAccessibility(Accessibility accessibility) {}
public static string FormatParameter(ParameterInfo p, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(MethodBase m, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(ParameterInfo[] parameterList, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatSpecialNameMethod(MethodBase methodOrConstructor, out MethodSpecialName nameType) {}
public static string FormatTypeName(this EventInfo ev, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this FieldInfo f, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this ParameterInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this PropertyInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this Type t, ICustomAttributeProvider? attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatValueDeclaration(object? val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
public static bool IsLanguagePrimitiveType(Type t, out string primitiveTypeName) {}
public static IEnumerable<string> ToNamespaceList(Type t) {}
}
public static class Generator {
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
[Obsolete("Use GenerateGenericParameterConstraintDeclaration instead.")]
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static string GenerateGenericParameterConstraintDeclaration(Type genericParameter, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static string? GenerateMemberDeclaration(MemberInfo member, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static string GenerateTypeDeclaration(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
}
public class GeneratorOptions : ICloneable {
public class AttributeDeclarationOptions {
public AttributeDeclarationOptions() {}
public AttributeSectionFormat AccessorFormat { get; set; }
public AttributeSectionFormat AccessorParameterFormat { get; set; }
public AttributeSectionFormat BackingFieldFormat { get; set; }
public AttributeSectionFormat DelegateParameterFormat { get; set; }
public AttributeSectionFormat GenericParameterFormat { get; set; }
public AttributeSectionFormat MethodParameterFormat { get; set; }
public bool OmitAttributeSuffix { get; set; }
public AttributeTypeFilter? TypeFilter { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamedArguments { get; set; }
public bool WithNamespace { get; set; }
}
public class MemberDeclarationOptions {
public MemberDeclarationOptions() {}
public MethodBodyOption AccessorBody { get; set; }
public MethodBodyOption MethodBody { get; set; }
public bool OmitEndOfStatement { get; set; }
public bool WithAccessibility { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithEnumTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class ParameterDeclarationOptions {
public ParameterDeclarationOptions() {}
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class TypeDeclarationOptions {
public TypeDeclarationOptions() {}
public bool OmitEndOfStatement { get; set; }
public bool OmitEnumUnderlyingTypeIfPossible { get; set; }
public bool WithAccessibility { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class ValueDeclarationOptions {
public ValueDeclarationOptions() {}
public bool UseDefaultLiteral { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public GeneratorOptions() {}
public GeneratorOptions.AttributeDeclarationOptions AttributeDeclaration { get; init; }
public bool IgnorePrivateOrAssembly { get; set; }
public string? Indent { get; set; }
public GeneratorOptions.MemberDeclarationOptions MemberDeclaration { get; init; }
public GeneratorOptions.ParameterDeclarationOptions ParameterDeclaration { get; init; }
public bool TranslateLanguagePrimitiveTypeDeclaration { get; set; }
public GeneratorOptions.TypeDeclarationOptions TypeDeclaration { get; init; }
public GeneratorOptions.ValueDeclarationOptions ValueDeclaration { get; init; }
public virtual GeneratorOptions Clone() {}
object ICloneable.Clone() {}
}
}
-// API list generated by Smdn.Reflection....
Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks version 1.2.2
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-03-27 update assembly version
- 2023-01-24 suppress warning IDE0017
- 2023-01-24 add project for building a private assembly to bundle with the package
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
index 1846f55..d387217 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
@@ -1,45 +1,45 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.1)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.2)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.2.1.0
-// InformationalVersion: 1.2.1+88003d6034bc241556344b9896ebd92a863ab602
+// AssemblyVersion: 1.2.2.0
+// InformationalVersion: 1.2.2+a9d051a724b045dfb618903230b079690849e937
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
-// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating, Version=1.1.5.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
-// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.1.0.
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.2.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
index f162e9b..f6e05dd 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
@@ -1,47 +1,47 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.1)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.2)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.2.1.0
-// InformationalVersion: 1.2.1+88003d6034bc241556344b9896ebd92a863ab602
+// AssemblyVersion: 1.2.2.0
+// InformationalVersion: 1.2.2+a9d051a724b045dfb618903230b079690849e937
// TargetFramework: .NETCoreApp,Version=v3.1
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
-// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating, Version=1.1.5.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
-// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.1.0.
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.2.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
Full changes
Full changes in this release:
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
index d97110a..6c02fd2 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
<PropertyGroup>
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks</RootNamespace>
- <VersionPrefix>1.2.1</VersionPrefix>
+ <VersionPrefix>1.2.2</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Nullable>enable</Nullable>
@@ -43,12 +43,16 @@ SPDX-License-Identifier: MIT
<ItemGroup>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.0.0" PrivateAssets="All" />
- <ProjectReference Include="..\Smdn.Reflection.ReverseGenerating.ListApi.Core\Smdn.Reflection.ReverseGenerating.ListApi.Core.csproj" PrivateAssets="All" />
+ <ProjectReference Include="private\Smdn.Reflection.ReverseGenerating.ListApi.Core.csproj" PrivateAssets="All" />
<!-- remove this package itself from PackageReference to avoid duplicate references during the running of 'Pack' target -->
<PackageReference Remove="$(PackageId)" />
</ItemGroup>
+ <ItemGroup>
+ <Compile Remove="priv...
Smdn.Reflection.ReverseGenerating.ListApi.Core version 1.2.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-01-24 delete unneeded CopyLocalLockFileAssemblies specifications
- 2023-01-24 add project for building a private assembly to bundle with the package
- 2023-01-24 use ProjectOrPackageReference item instead of using VersionRange attribute
- 2023-01-23 fix for API compatibility
- 2023-01-23 ignore 'mscorlib' also for .NETStandard and .NETCoreApp targetted assembly
- 2023-01-23 ignore 'netstandard' also for .NETCoreApp targetted assembly
- 2023-01-23 warn if .deps.json could not be loaded
- 2023-01-23 improve logging for loading .deps.json
- 2023-01-23 check for target framework to warn unresolved assemblies
- 2023-01-23 improve to not warn unresolved assemblies that are ignorable
- 2023-01-23 improve detail log message
- 2023-01-18 log the exceptions occured in generator
- 2023-01-18 include System.Runtime.CompilerServices.IsExternalInit
- 2023-01-18 make actionWithLoadedAssembly nullable
- 2023-01-18 throw if argument is null
- 2023-01-18 reduce duplicate codes
- 2023-01-18 make logger parameter optional
- 2023-01-18 add logging support for ApiListWriter
- 2023-01-18 read .deps.json file and resolve dependency assemblies
- 2023-01-14 remove unnecessary package reference to System.Runtime.Loader
- 2023-01-12 update assembly version
- 2023-01-12 add ApiListWriter.WriteHeader and make writing assembly info configurable
- 2023-01-12 remove code for .NET 7.0 preview SDK
- 2023-01-12 output the footer
- 2023-01-11 add fallback implementation for ApiListWriter.WriteReferencedAssemblies
- 2023-01-11 remove debug code
- 2023-01-11 improve to log full type name of loaded assembly
- 2023-01-11 fix not to output namespace declarations for the types that don't have namespace in its name
- 2023-01-11 fix nullability annotation
- 2023-01-11 throw ArgumentNullException
- 2023-01-11 split classes into individual file
- 2023-01-11 add AssemblyLoader.UsingAssembly overload to read assembly from stream
- 2023-01-11 fix expected and actual value are reversed
- 2023-01-10 reduce writing unnecessary newline if the referencing namespace is empty
- 2023-01-10 reduce unneccessary use of lambda expression
- 2023-01-10 refactor
- 2023-01-10 add ApiListWriterOptions.WriterOptions.WriteReferencedAssemblies
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
index 9d5b05f..05d37c2 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi.Core-net6.0.apilist.cs
@@ -1,80 +1,91 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.1.3)
+// Smdn.Reflection.ReverseGenerating.ListApi.Core.dll (Smdn.Reflection.ReverseGenerating.ListApi.Core-1.2.0)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.Core
-// AssemblyVersion: 1.1.3.0
-// InformationalVersion: 1.1.3+838f22ef3a8aec668070f1ca9e1e4688974dad9c
+// AssemblyVersion: 1.2.0.0
+// InformationalVersion: 1.2.0+4171114f874ee632b40586362e7979ce5871c0c7
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
// Referenced assemblies:
+// Microsoft.Extensions.DependencyModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
-// Smdn.Fundamental.Reflection, Version=3.3.2.0, Culture=neutral
-// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
+// Smdn.Fundamental.Reflection, Version=3.3.0.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating, Version=1.1.1.0, Culture=neutral
// System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-// System.Console, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Linq, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Reflection.Metadata, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Reflection.MetadataLoadContext, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime.InteropServices, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime.Loader, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
using System.Runtime.Versioning;
using Microsoft.Extensions.Logging;
using Smdn.Reflection.ReverseGenerating;
using Smdn.Reflection.ReverseGenerating.ListApi;
namespace Smdn.Reflection.ReverseGenerating.ListApi {
public class ApiListWriter {
- public ApiListWriter(TextWriter baseWriter, Assembly assembly, ApiListWriterOptions options) {}
+ public ApiListWriter(TextWriter baseWriter, Assembly assembly, ApiListWriterOptions? options) {}
+ public ApiListWriter(TextWriter baseWriter, Assembly assembly, ApiListWriterOptions? options, ILogger? logger) {}
public TextWri...
Smdn.Reflection.ReverseGenerating.ListApi version 1.2.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-01-24 update assembly version
- 2023-01-24 bump Smdn.Reflection.ReverseGenerating.ListApi.Core up to 1.2.0
- 2023-01-24 use ProjectOrPackageReference item instead of using VersionRange attribute
- 2023-01-18 bump Microsoft.Extensions.DependencyModel
- 2023-01-18 add logging support for ApiListWriter
- 2023-01-12 add ApiListWriter.WriteHeader and make writing assembly info configurable
- 2023-01-12 seal class
- 2023-01-12 output the footer
Full changes
Full changes in this release:
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi.csproj b/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi.csproj
index 6a67fb6..6a71676 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi.csproj
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi.csproj
@@ -9,7 +9,7 @@ SPDX-License-Identifier: MIT
<TargetFrameworks>net6.0<!-- ;net472 --></TargetFrameworks>
<AssemblyName>Smdn.Reflection.ReverseGenerating.ListApi</AssemblyName>
<ToolCommandName>list-api</ToolCommandName>
- <VersionPrefix>1.1.0.1</VersionPrefix>
+ <VersionPrefix>1.2.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Nullable>enable</Nullable>
<EnableFeature_BuildProjectFile Condition=" '$(Configuration)' != 'Release' ">true</EnableFeature_BuildProjectFile>
@@ -34,7 +34,7 @@ SPDX-License-Identifier: MIT
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.21308.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" Condition="$(TargetFramework.StartsWith('net6.')) Or $(TargetFramework.StartsWith('netcoreapp'))" />
- <ProjectReference VersionRange="[1.1.1,2.0.0)" Include="..\Smdn.Reflection.ReverseGenerating.ListApi.Core\Smdn.Reflection.ReverseGenerating.ListApi.Core.csproj" />
+ <ProjectOrPackageReference ReferencePackageVersion="[1.2.0,2.0.0)" Include="..\Smdn.Reflection.ReverseGenerating.ListApi.Core\Smdn.Reflection.ReverseGenerating.ListApi.Core.csproj" />
</ItemGroup>
<ItemGroup Condition=" '$(EnableFeature_BuildProjectFile)' == 'True' ">
@@ -45,7 +45,8 @@ SPDX-License-Identifier: MIT
<PackageReference Include="Microsoft.Build" Version="16.11.0" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.11.0" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.11.0" />
- <PackageReference Include="Microsoft.Extensions.DependencyModel" Version="5.0.0" />
+ <PackageReference Include="Microsoft.Extensions.DependencyModel" Version="6.0.0" Condition="$(TargetFramework.StartsWith('net6.'))" />
+ <PackageReference Include="Microsoft.Extensions.DependencyModel" Version="7.0.0" Condition="$(TargetFramework.StartsWith('net7.'))" />
<PackageReference Include="Microsoft.NET.HostModel" Version="3.1.16" />
<PackageReference Include="NuGet.ProjectModel" Version="5.11.0" />
<PackageReference Include="Smdn.Fundamental.Shell" Version="3.0.0" />
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/Program.cs b/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/Program.cs
index 00ebef2..efdf515 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/Program.cs
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/Program.cs
@@ -11,7 +11,7 @@ using Microsoft.Extensions.Logging;
namespace Smdn.Reflection.ReverseGenerating.ListApi;
-internal class Program {
+internal sealed class Program {
internal static string LoggerCategoryName => typeof(Program).Assembly.GetName().Name!;
private static int Main(string[] args)
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/RootCommandImplementation.cs b/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/RootCommandImplementation.cs
index 7d76b97..bb21df8 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/RootCommandImplementation.cs
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi/Smdn.Reflection.ReverseGenerating.ListApi/RootCommandImplementation.cs
@@ -212,10 +212,16 @@ public class RootCommandImplementation {
using var outputWriter = new StreamWriter(outputFilePath, append: false, new UTF8Encoding(false));
- var writer = new ApiListWriter(outputWriter, assm, arg.options);
+ var writer = new ApiListWriter(
+ outputWriter,
+ assm,
+ arg.options,
+ arg.logger
+ );
- writer.WriteAssemblyInfoHeader();
+ writer.WriteHeader();
writer.WriteExportedTypes();
+ writer.WriteFooter();
arg.logger?.LogDebug("generated API list {OutputFilePath}", outputFilePath);
arg.logger?.LogInformation("{AssemblyFilePath} -> {OutputFilePath}", assm.Location, outputFilePath);
Notes
Full Changelog: releases/Smdn.Reflection.ReverseGenerating.ListApi-1.1.0.1...releases/Smdn.Reflection.ReverseGenerating.ListApi-1.2.0
Smdn.Reflection.ReverseGenerating version 1.1.5
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-01-24 update assembly version
- 2023-01-24 delete unneeded CopyLocalLockFileAssemblies specifications
- 2023-01-18 include System.Runtime.CompilerServices.IsExternalInit
- 2023-01-18 fix FieldInfoValueExtensions.TryGetValue to handle TargetInvocationException properly
- 2023-01-12 remove code for .NET 7.0 preview SDK
- 2022-12-17 drop target framework net5.0
- 2022-07-28 bump Smdn.Fundamental.Reflection up to 3.3.2
- 2022-07-28 add GeneratorOptions.TypeDeclarationOptions.OmitEnumUnderlyingTypeIfPossible
- 2022-07-28 add support for applying GeneratorOptions.TypeDeclaration.WithNamespace and GeneratorOptions.TranslateLanguagePrimitiveTypeDeclaration to enum underlying types
- 2022-07-28 enable NullabilityInfo workaround also on .NET 7.0
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
index db2eee7..c6b1b06 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating-net45.apilist.cs
@@ -1,131 +1,134 @@
-// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.4)
+// Smdn.Reflection.ReverseGenerating.dll (Smdn.Reflection.ReverseGenerating-1.1.5)
// Name: Smdn.Reflection.ReverseGenerating
-// AssemblyVersion: 1.1.4.0
-// InformationalVersion: 1.1.4+474aa1799ff8a98167dc9760f2acafaa15b81d4c
+// AssemblyVersion: 1.1.5.0
+// InformationalVersion: 1.1.5+8b0234f9aa81d64e62185c0c566a560c630f934b
// TargetFramework: .NETFramework,Version=v4.5
// Configuration: Release
// Referenced assemblies:
// Smdn.Fundamental.Reflection, Version=3.3.2.0, Culture=neutral
// System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
// mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
#nullable enable annotations
using System;
using System.Collections.Generic;
using System.Reflection;
using Smdn.Reflection;
using Smdn.Reflection.ReverseGenerating;
namespace Smdn.Reflection.ReverseGenerating {
public delegate bool AttributeTypeFilter(Type type, ICustomAttributeProvider attributeProvider);
public enum AttributeSectionFormat : int {
Discrete = 1,
List = 0,
}
public enum MethodBodyOption : int {
EmptyImplementation = 1,
None = 0,
ThrowNotImplementedException = 2,
ThrowNull = 3,
}
public static class CSharpFormatter {
public static string EscapeString(string s, bool escapeSingleQuote = false, bool escapeDoubleQuote = false) {}
public static string FormatAccessibility(Accessibility accessibility) {}
public static string FormatParameter(ParameterInfo p, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(MethodBase m, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatParameterList(ParameterInfo[] parameterList, bool typeWithNamespace = true, bool useDefaultLiteral = false) {}
public static string FormatSpecialNameMethod(MethodBase methodOrConstructor, out MethodSpecialName nameType) {}
public static string FormatTypeName(this EventInfo ev, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this FieldInfo f, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this ParameterInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this PropertyInfo p, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatTypeName(this Type t, ICustomAttributeProvider? attributeProvider = null, bool typeWithNamespace = true, bool withDeclaringTypeName = true, bool translateLanguagePrimitiveType = true) {}
public static string FormatValueDeclaration(object? val, Type typeOfValue, bool typeWithNamespace = true, bool findConstantField = false, bool useDefaultLiteral = false) {}
public static bool IsLanguagePrimitiveType(Type t, out string primitiveTypeName) {}
public static IEnumerable<string> ToNamespaceList(Type t) {}
}
public static class Generator {
public static IEnumerable<string> GenerateAttributeList(ICustomAttributeProvider attributeProvider, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
[Obsolete("Use GenerateGenericParameterConstraintDeclaration instead.")]
public static string GenerateGenericArgumentConstraintDeclaration(Type genericArgument, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static string GenerateGenericParameterConstraintDeclaration(Type genericParameter, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static string? GenerateMemberDeclaration(MemberInfo member, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static string GenerateTypeDeclaration(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
public static IEnumerable<string> GenerateTypeDeclarationWithExplicitBaseTypeAndInterfaces(Type t, ISet<string>? referencingNamespaces, GeneratorOptions options) {}
}
public class GeneratorOptions : ICloneable {
public class AttributeDeclarationOptions {
public AttributeDeclarationOptions() {}
public AttributeSectionFormat AccessorFormat { get; set; }
public AttributeSectionFormat AccessorParameterFormat { get; set; }
public AttributeSectionFormat BackingFieldFormat { get; set; }
public AttributeSectionFormat DelegateParameterFormat { get; set; }
public AttributeSectionFormat GenericParameterFormat { get; set; }
public AttributeSectionFormat MethodParameterFormat { get; set; }
public bool OmitAttributeSuffix { get; set; }
public AttributeTypeFilter? TypeFilter { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamedArguments { get; set; }
public bool WithNamespace { get; set; }
}
public class MemberDeclarationOptions {
public MemberDeclarationOptions() {}
public MethodBodyOption AccessorBody { get; set; }
public MethodBodyOption MethodBody { get; set; }
public bool OmitEndOfStatement { get; set; }
public bool WithAccessibility { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithEnumTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class ParameterDeclarationOptions {
public ParameterDeclarationOptions() {}
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class TypeDeclarationOptions {
public TypeDeclarationOptions() {}
public bool OmitEndOfStatement { get; set; }
+ public bool OmitEnumUnderlyingTypeIfPossible { get; set; }
public bool WithAccessibility { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public class ValueDeclarationOptions {
public ValueDeclarationOptions() {}
public bool UseDefaultLiteral { get; set; }
public bool WithDeclaringTypeName { get; set; }
public bool WithNamespace { get; set; }
}
public GeneratorOptions() {}
public GeneratorOptions.AttributeDeclarationOptions AttributeDeclaration { get; init; }
public bool IgnorePrivateOrAssembly { get; set; }
public string? Indent { get; set; }
public GeneratorOptions.MemberDeclarationOptions MemberDeclaration { get; init; }
public GeneratorOptions.ParameterDeclarationOptions ...
Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks version 1.2.1
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-01-23 update assembly version
- 2023-01-23 set file name for LoggerAdapter
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
index 848b752..1846f55 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
@@ -1,45 +1,45 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.0)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.1)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.2.0.0
-// InformationalVersion: 1.2.0+311c5e4b42ba0ed626e847e0401b0a8f2bb386fe
+// AssemblyVersion: 1.2.1.0
+// InformationalVersion: 1.2.1+88003d6034bc241556344b9896ebd92a863ab602
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
-// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.0.0.
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.1.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
index d6aa21c..f162e9b 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
@@ -1,47 +1,47 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.0)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.1)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.2.0.0
-// InformationalVersion: 1.2.0+311c5e4b42ba0ed626e847e0401b0a8f2bb386fe
+// AssemblyVersion: 1.2.1.0
+// InformationalVersion: 1.2.1+88003d6034bc241556344b9896ebd92a863ab602
// TargetFramework: .NETCoreApp,Version=v3.1
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
-// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.0.0.
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.1.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
Full changes
Full changes in this release:
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
index 134e64a..d97110a 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
<PropertyGroup>
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks</RootNamespace>
- <VersionPrefix>1.2.0</VersionPrefix>
+ <VersionPrefix>1.2.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Nullable>enable</Nullable>
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
index 7765f58..c430924 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
@@ -75,7 +75,7 @@ public class GenerateApiList : Task {
options,
loadIntoReflectionOnlyContext,
GenerateNullableAnnotations,
- logger: new LoggerAdapter(Log)
+ logger: new LoggerAdapter(Log, inputAssemblyFilePath)
);
}
catch (Exception ex) {
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.M...
Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks version 1.2.0
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-01-19 update assembly version
- 2023-01-19 add comment
- 2023-01-18 add logging support for ApiListWriter
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
index 1af78ae..848b752 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
@@ -1,45 +1,45 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.7)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.0)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.1.7.0
-// InformationalVersion: 1.1.7+87a650b48f0ea257aa3448bcfafcd60232369ad5
+// AssemblyVersion: 1.2.0.0
+// InformationalVersion: 1.2.0+311c5e4b42ba0ed626e847e0401b0a8f2bb386fe
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
-// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.1.7.0.
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.0.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
index ad269da..d6aa21c 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
@@ -1,47 +1,47 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.7)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.2.0)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.1.7.0
-// InformationalVersion: 1.1.7+87a650b48f0ea257aa3448bcfafcd60232369ad5
+// AssemblyVersion: 1.2.0.0
+// InformationalVersion: 1.2.0+311c5e4b42ba0ed626e847e0401b0a8f2bb386fe
// TargetFramework: .NETCoreApp,Version=v3.1
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
-// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.1.7.0.
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.2.0.0.
// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
Full changes
Full changes in this release:
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
index 8aaab23..134e64a 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
@@ -6,9 +6,11 @@ SPDX-License-Identifier: MIT
<PropertyGroup>
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks</RootNamespace>
- <VersionPrefix>1.1.7</VersionPrefix>
+ <VersionPrefix>1.2.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Nullable>enable</Nullable>
+
+ <!-- required to include all dependencies to the package -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<!-- suppress generating README.md by Smdn.MSBuild.ProjectAssets.Library -->
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
index a1ef9ab..7765f58 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
@@ -160,7 +160,8 @@ public class GenerateApiList : Task {
arg: (
...
Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks version 1.1.7
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-01-12 update assembly info
- 2023-01-12 add option GenerateAssemblyInfo
- 2023-01-12 add ApiListWriter.WriteHeader and make writing assembly info configurable
- 2023-01-12 output the footer
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
index ccd20a6..1af78ae 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
@@ -1,42 +1,45 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.6)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.7)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.1.6.0
-// InformationalVersion: 1.1.6+17caa89ad2cc673f75b9dd77aa5440d22c25812d
+// AssemblyVersion: 1.1.7.0
+// InformationalVersion: 1.1.7+87a650b48f0ea257aa3448bcfafcd60232369ad5
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
-// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.1.3.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
+ public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.1.7.0.
+// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
index 7bfc7cc..ad269da 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
@@ -1,44 +1,47 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.6)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.7)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.1.6.0
-// InformationalVersion: 1.1.6+17caa89ad2cc673f75b9dd77aa5440d22c25812d
+// AssemblyVersion: 1.1.7.0
+// InformationalVersion: 1.1.7+87a650b48f0ea257aa3448bcfafcd60232369ad5
// TargetFramework: .NETCoreApp,Version=v3.1
// Configuration: Release
// Referenced assemblies:
// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
-// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.1.3.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.2.0.0, Culture=neutral
// System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
+ public bool GenerateAssemblyInfo { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
+// API list generated by Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks v1.1.7.0.
+// Smdn.Reflection.ReverseGenerating.ListApi.Core v1.2.0.0 (https://github.com/smdn/Smdn.Reflection.ReverseGenerating)
Full changes
Full changes in this release:
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
index 2b7684b..8aaab23 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
<PropertyGroup>
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks</RootNamespace>
- <VersionPrefix>1.1.6</VersionPrefix>
+ <VersionPrefix>1.1.7</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
index ede72ea..a1ef9ab 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
@@ -26,6 +26,7 @@ public class Generat...
Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks version 1.1.6
Released package
Release notes
The full release notes are available at gist.
Change log
Change log in this release:
- 2023-01-10 update assembly version
- 2023-01-10 add option GenerateReferencedAssemblies
API changes
API changes in this release:
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
index 9c55e20..ccd20a6 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-net6.0.apilist.cs
@@ -1,32 +1,42 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.5)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.6)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.1.5.0
-// InformationalVersion: 1.1.5+cb2486f3b59557763321714652e8d0095aad4d5c
+// AssemblyVersion: 1.1.6.0
+// InformationalVersion: 1.1.6+17caa89ad2cc673f75b9dd77aa5440d22c25812d
// TargetFramework: .NETCoreApp,Version=v6.0
// Configuration: Release
+// Referenced assemblies:
+// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
+// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.1.3.0, Culture=neutral
+// System.Collections, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.Text.Encoding.Extensions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
+ public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
diff --git a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
index a012642..7bfc7cc 100644
--- a/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
+++ b/doc/api-list/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-netcoreapp3.1.apilist.cs
@@ -1,32 +1,44 @@
-// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.5)
+// Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.dll (Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks-1.1.6)
// Name: Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks
-// AssemblyVersion: 1.1.5.0
-// InformationalVersion: 1.1.5+cb2486f3b59557763321714652e8d0095aad4d5c
+// AssemblyVersion: 1.1.6.0
+// InformationalVersion: 1.1.6+17caa89ad2cc673f75b9dd77aa5440d22c25812d
// TargetFramework: .NETCoreApp,Version=v3.1
// Configuration: Release
+// Referenced assemblies:
+// Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
+// Smdn.Reflection.ReverseGenerating, Version=1.1.4.0, Culture=neutral
+// Smdn.Reflection.ReverseGenerating.ListApi.Core, Version=1.1.3.0, Culture=neutral
+// System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+// System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
#nullable enable annotations
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks {
public class GenerateApiList : Task {
public GenerateApiList() {}
[Required]
public ITaskItem[]? Assemblies { get; set; }
public bool GenerateAttributeWithNamedArguments { get; set; }
public bool GenerateEmbeddedResources { get; set; }
public bool GenerateFullTypeName { get; set; }
public bool GenerateLanguagePrimitiveType { get; set; }
public string? GenerateMethodBody { get; set; }
public bool GenerateNullableAnnotations { get; set; }
+ public bool GenerateReferencedAssemblies { get; set; }
public bool GenerateStaticMembersFirst { get; set; }
public bool GenerateTypeNameWithDeclaringTypeName { get; set; }
public bool GenerateValueWithDefaultLiteral { get; set; }
[Output]
public ITaskItem[]? GeneratedFiles { get; }
public override bool Execute() {}
}
}
Full changes
Full changes in this release:
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
index 9b63fc4..2b7684b 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks.csproj
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
<PropertyGroup>
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks</RootNamespace>
- <VersionPrefix>1.1.5</VersionPrefix>
+ <VersionPrefix>1.1.6</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
diff --git a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
index 004cd51..ede72ea 100644
--- a/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
+++ b/src/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/Smdn.Reflection.ReverseGenerating.ListApi.MSBuild.Tasks/GenerateApiList.cs
@@ -27,6 +27,7 @@ public class GenerateApiList : Task {
public bool GenerateNullableAnnotations { get; set; } = true;
public bool GenerateValueWithDefaultLiteral { get; set; } = true;
public bool GenerateEmbeddedResources { get; set; } = true;
+ public bool GenerateReferencedAssemblies { get; set; } = true;
[Output]
public ITaskItem[]? GeneratedFiles { get; private set; }
@@ -131,6 +132,7 @@ public class GenerateApiList : Task {
options.Writer.WriteNullableAnnotationDirective = GenerateNullableAnnotations;
options.Writer.OrderStaticMembersFirst = GenerateStaticMembersFirst;
options.Writer.WriteEmbeddedResources = GenerateEmbeddedResources;
+ options.Writer.WriteReferencedAssemblies = GenerateReferencedAssemblies;
options.AttributeDeclaration.TypeFilter = AttributeFilter.Default;
options.AttributeDeclaration.WithNamedArguments = GenerateAttributeWithNamedArguments;