I just recently upgraded my project from .net 4.8 to .net 6.0 because all of my libraries I upgraded to .net 3.1.
I noticed that to compile I had to multitarget the project to .net4.8;.net6.0
and of course I did this by customizing my project file by removing certain parts for .net4.8 because they referenced .net3.1 libraries
However I had to remove pretty much every Form because each form references a 3.1 library.
So all my forms are only included in .net 6.0 targets.
I noticed the view designer options for these forms have disappeared.
I did try adding the <Content Include=”frmUser.cs”>
and the <Content Include=”frmUser.designer.cs”>
under the .net 4.8 target but even after I recompile the project and close and reopen VS 2022, the View Designer option is missing still.
Can you view the designer for a form if the form.cs and form.designer.cs are <Compile Removed>?
Sorry, this issue is kind of hard to explain. If you need an example I can make a sample project.
Thanks for your help.
Devin
I’ll answer my own question here,
It appears you cannot, however for a workaround and it’s a bit tedious
I have opened the .csproj file and commented out the 4.8 target <ItemGroup> sections for my forms I want to edit, and unload and reload the project. Then I can edit the forms in the designer. However of course it will not compile now, so before I can run in the debugger I have to remove my comments for the 4.8 Item Group so it will compile again.
I am really looking forward for the .net core designer 🙂 cause this is a pain.
Please login first to submit.