SmartAnnotations icon indicating copy to clipboard operation
SmartAnnotations copied to clipboard

Not Working at all for Net6.0 Project

Open TorreyGarland opened this issue 2 years ago • 1 comments

Absolutely no code is generated.

Followed the instructions.

I have an EditViewModel:

public partial class EditViewModel
{
    [Reactive]
    public string Email { get; set; } = string.Empty;

    [Reactive]
    public string? Comment { get; set; }

    [Reactive]
    public bool IsApproved { get; set; }

    [Reactive]
    public bool IsLockedOut { get; set; }

    [ObservableAsProperty]
    public Roles Roles { get; }

    [Reactive]
    public IReadOnlyList<Roles> SelectedRoles { get; set; }
        = Array.Empty<Roles>();

    public ICommand Submit { get; }

    public ICommand Unlock { get; }

    public Interaction<Unit, bool> Validating { get; }
        = new();
}

and a EditModelAnnotator:

public class EditViewModelAnnotator : Annotator<EditViewModel>
{
    public EditViewModelAnnotator()
    {
        DefineFor(x => x.Email).Display().Name("Email");

        DefineFor(x => x.SelectedRoles).Display().Name("Roles");
    }
}

and my CSProj file: Screenshot 2022-06-05 222130

TorreyGarland avatar Jun 06 '22 02:06 TorreyGarland

Hey @TorreyGarland,

Yes, that's true, there are some changes in .NET6. I'll cross-check soon and publish a fix. But, still would be a beta version. This is the issue #1 that holds me back from publishing a release.

fiseni avatar Jun 06 '22 17:06 fiseni