Activities of "liangshiwei"

Hi,

As I know, we have no plan to do this in the short term. sorry, we are focusing on the NET8 and ABP Studio.

You need to implement it yourself if you need it. You can create a feature request issue in the ABP repository so we can evaluate it. thanks.

Hi,

You need to remove the AbpStringToEnumFactory

Just an example:

public class EnumToStringConverterFactory : JsonConverterFactory
{
    public override bool CanConvert(Type typeToConvert)
    {
        return typeToConvert.IsEnum;
    }

    public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options)
    {
        return (JsonConverter)Activator.CreateInstance(
            typeof(MyEnumToStringConverter<>).MakeGenericType(typeToConvert),
            BindingFlags.Instance | BindingFlags.Public,
            binder: null,
            new object?[] { },
            culture: null)!;
    }
}

public class MyEnumToStringConverter<T> : JsonConverter<T>
    where T : struct, Enum
{
    public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    {
        return Enum.Parse<T>(reader.GetString()!);
    }

    public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
    {
        writer.WriteStringValue(value.ToString());
    }
}

Configure<AbpSystemTextJsonSerializerOptions>(options =>
{
    var stringToEnumFactory = options.JsonSerializerOptions.Converters.Single(x => x.GetType() == typeof(AbpStringToEnumFactory));
    options.JsonSerializerOptions.Converters.Remove(stringToEnumFactory);
    options.JsonSerializerOptions.Converters.Add(new EnumToStringConverterFactory());
});

Configure<JsonOptions>(options =>
{
    var stringToEnumFactory = options.JsonSerializerOptions.Converters.Single(x => x.GetType() == typeof(AbpStringToEnumFactory));
    options.JsonSerializerOptions.Converters.Remove(stringToEnumFactory);
    options.JsonSerializerOptions.Converters.Add(new EnumToStringConverterFactory());
});

If you're getting license error with ABP v8.0 at nightly packages run the project in Release mode: 1-) dotnet run -c Release 2-) Set your environment variable ASPNETCORE_ENVIRONMENT=Release You need to configure these 2 options to Release otherwise you'll get error.

ok

Try

AsyncHelper.RunSync(() => app.ApplicationServices.GetRequiredService<IPermissionDefinitionManager>().GetGroupsAsync());

Answer

Hi,

We have no plan to do it.

Hi,

We have done it for the ABP framework https://github.com/abpframework/abp/pull/17870

It's good to manage the package versions, you can also do it for your project if you want.

Hi,

Could you provide the full steps to reproduce the problem? I will check it. thanks

Hi,

You should customize the login page in the AuthServer (Or HttpApi.Host if not Tiered) project.

Hi,

I made an example and shared it with you via email. please check it.

Showing 3111 to 3120 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.