Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Working at all for Net6.0 Project #3

Open
TorreyGarland opened this issue Jun 6, 2022 · 1 comment
Open

Not Working at all for Net6.0 Project #3

TorreyGarland opened this issue Jun 6, 2022 · 1 comment

Comments

@TorreyGarland
Copy link

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

@fiseni
Copy link
Owner

fiseni commented Jun 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants