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

NET Core 3.0 support? #3

Open
sander1095 opened this issue Jul 27, 2019 · 1 comment
Open

NET Core 3.0 support? #3

sander1095 opened this issue Jul 27, 2019 · 1 comment

Comments

@sander1095
Copy link

Hello!

I have been playing around with your library this afternoon and it works really well!

TL;DR: Will you make this library support .NET Core 3.0 because this will have WPF support?

Some background info on why I create this issue:

I had an issue with debugging because this is basically impossible I believe after the .exe is generated. The only way I could do this is to throw exceptions with some messages which would then be displayed as an error dialog and this is not too efficient.

The way I solved this is to create a .NET Framework console project which creates an instance of my viewmodel and then calls the "button" methods like your .exe would and this does allow me to just use my debugger and breakpoints, etc. Very useful:

public class MyViewModel
{
    [TextInput]
    public virtual string Name { get; set; }

    [Action]
    public void PerformButtonPress()
    {
        // ...
    }
}

public class Program 
{
        static void Main(string[] args)
        {
            var viewModel = new MyViewModel()
            {
                Name = "Foo"
            };

            try
            {
                viewModel.PerformButtonPress();
            }
            catch (Exception e)
            {
                // Inspect exceptions here if you don't break on user-managed exceptions
                throw;
            } 
        }
}

Sadly this "debugging" project can't be a .NET Core project because it calls my "mecha" project which is a .NET Framework 4.8 library project which, in my case, is doing some stuff like accessing the windows file system and unzipping files.

I'd love to make my project .NET Core compliant and this can only be done if I could upgrade my mecha project to be a .NET Core 3.0 project.

@sander1095
Copy link
Author

Actually, I just figured out you can just attach to the process in visual studio and debug that way.

Still, why not support .NET Core 3.0?

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

1 participant