Skip to content

Releases: vipwan/Biwen.AutoClassGen

1.5.1.2 released

20 Sep 09:44
Compare
Choose a tag to compare
  • 提供utf-8 encoding 编码分析
  • Full Changelog: 1.5.0...1.5.1

1.5.0 released

18 Sep 16:17
Compare
Choose a tag to compare
  • 提供文件范围命名空间分析

image

Full Changelog: 1.3.9...1.5.0

1.3.9.9 released

07 Sep 08:33
Compare
Choose a tag to compare

#8 提供添加文件头部信息的分析器和修复器

异步方法Async结尾的修复器和分析器

Full Changelog: 1.3.8...1.3.9

1.3.8 released

05 Sep 07:07
Compare
Choose a tag to compare
  • 提供程序集的元数据Metadata 常量生成

将生成如下的代码片段:

// <auto-generated/>
namespace {namespace}.Generated;
[global::System.CodeDom.Compiler.GeneratedCode("Biwen.AutoClassGen", "1.3.8")]
public static class AssemblyMetadata
{
    public const string Company = "Biwen.AutoClassGen.TestConsole";
    public const string Configuration = "Debug";
    public const string FileVersion = "2.0.2";
    public const string InformationalVersion = "2.0.1+a77d17d67a65a8502a09c5b3f11b5805a6d55d58";
    public const string Product = "Biwen.AutoClassGen.TestConsole";
    public const string Title = "Biwen.AutoClassGen.TestConsole";
    public const string Version = "2.0.1.0";
    public const string TargetFramework = ".NETCoreApp,Version=v8.0";
}

Full Changelog: 1.3.7...1.3.8

1.3.7.2 released

03 Sep 09:20
Compare
Choose a tag to compare

1.3.6 released

30 Aug 12:37
Compare
Choose a tag to compare
  1. 提供 AutoDecorFor<T>支持.用于标注于装饰器实现上
  2. 修复已知BUG,优化部分代码

Full Changelog: 1.3.5...1.3.6

1.3.5 released

29 Aug 06:44
Compare
Choose a tag to compare

build-in decorate extension & remove Scrutor using

Full Changelog: 1.3.3...1.3.5

1.3.3 released

19 Jun 19:28
Compare
Choose a tag to compare

提供NET8+ keyed Service支持

//NET8.0+ 支持keyed
[AutoInjectKeyed<ITest2Service>("test2", ServiceLifetime.Transient)]
[AutoInjectKeyed<ITest2Service>(nameof(TestService2))]
public class TestService2 : ITest2Service
{
    public string Say2(string message)
    {
        return message;
    }
}

将会生成:

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAutoInject(this Microsoft.Extensions.DependencyInjection.IServiceCollection services)
{
    services.AddKeyedTransient<Biwen.AutoClassGen.TestConsole.Services.ITest2Service, Biwen.AutoClassGen.TestConsole.Services.TestService2>("test2");
    services.AddKeyedScoped<Biwen.AutoClassGen.TestConsole.Services.ITest2Service, Biwen.AutoClassGen.TestConsole.Services.TestService2>("TestService2");
    return services;
}

1.3.2.3 released

27 Mar 07:03
Compare
Choose a tag to compare

提供非泛型的特性标注

[AutoInject]
[AutoInject(serviceLifetime: ServiceLifetime.Transient)]
[AutoInject(typeof(ITest2Service), ServiceLifetime.Scoped)]
public class TestService2 : ITest2Service
{
    public string Say2(string message)
    {
        return message;
    }
}

1.3.0 released

26 Mar 14:57
Compare
Choose a tag to compare