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

external app not working target invocation exception #8

Open
AmeerMansour opened this issue Aug 6, 2020 · 1 comment
Open

external app not working target invocation exception #8

AmeerMansour opened this issue Aug 6, 2020 · 1 comment
Assignees

Comments

@AmeerMansour
Copy link

I used this template and whenever i run it without modify anything, I get this exception.
https://drive.google.com/file/d/1GMYBRyPuIgU1r9iEOgsfdZJXC2c84TQ-/view?usp=sharing

@AmeerMansour
Copy link
Author

AmeerMansour commented Aug 6, 2020

I fixed it by removing static constructor of app class
I removed the following lines

static App() { #if WINFORMS global::System.Windows.Forms.Application.EnableVisualStyles(); global::System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); #endif }

@salaros salaros self-assigned this Apr 7, 2023
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