Releases: vipwan/Biwen.AutoClassGen
Releases · vipwan/Biwen.AutoClassGen
1.5.1.2 released
- 提供
utf-8
encoding 编码分析 - Full Changelog: 1.5.0...1.5.1
1.5.0 released
1.3.9.9 released
1.3.8 released
- 提供程序集的元数据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
- add version gen
Full Changelog: 1.3.6...1.3.7
1.3.6 released
- 提供
AutoDecorFor<T>
支持.用于标注于装饰器实现上 - 修复已知BUG,优化部分代码
Full Changelog: 1.3.5...1.3.6
1.3.5 released
build-in decorate extension & remove Scrutor
using
Full Changelog: 1.3.3...1.3.5
1.3.3 released
提供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
提供非泛型的特性标注
[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
#7 提供 AutoInject 支持
Doc https://github.com/vipwan/Biwen.AutoClassGen/blob/master/Gen-AutoInject.md