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

Strange Problem with Winforms Designer releated to VS2022 #959

Closed
VolkmarR opened this issue Feb 14, 2022 · 3 comments
Closed

Strange Problem with Winforms Designer releated to VS2022 #959

VolkmarR opened this issue Feb 14, 2022 · 3 comments

Comments

@VolkmarR
Copy link
Contributor

I have a strange Problem with the Windows Designer in Visual Studio 2022. The Winforms Designer works fine with our solution in VS2019 with X# 2.10.0.3. When I open the same solution in VS2022, the Winforms Designer won't open and shows the Error

image

I tried to create a example solution to reproduce this problem, but I was not able to reproduce it with some simple forms.

Is there any logging that I can activate to help you identify the issue in VS2022?

@VolkmarR
Copy link
Contributor Author

I managed to reproduce the problem. We have to compile our projects as Platform Target X86. That is the cause.
XSharpWinformsTest.zip

@VolkmarR
Copy link
Contributor Author

@RobertvanderHulst
Copy link
Member

Volkmar,
I think you are right. The DLLs and projects that you have referenced need to be x64 or AnyCpu to be used by the 64bit form designer for Windows Forms (when you target the .Net Framework).
I am afraid there is not much we can do about this.
So you will have to either

  • design the forms in VS2019
  • change the processor from x86 to AnyCpu or x64 in the referenced projects.

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

No branches or pull requests

2 participants