Everytime I create a new project the designer breaks
See original GitHub issueEnvironment
Visual Studio 2022 17.3.3
.NET version
I use NET 6.0, but it also affected 3.1 & 5.0.
Did this work in a previous version of Visual Studio and/or previous .NET release?
It did work in the past, but suddenly i just get this error that breaks the form designer.
Issue description
In every project I create, the form designer just doesnt work. This is the error it gives me:
at Microsoft.DotNet.DesignTools.Client.Host.ProjectInfoProvider.NetCore.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.DesignTools.Client.Host.ProjectInfoProvider.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.DesignTools.Client.Host.ServerHostFactory.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.DesignTools.Client.DesignToolsClientLoader.d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.DesignTools.Client.DesignToolsClientLoader.<>c__DisplayClass25_1.<<-ctor>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.DotNet.DesignTools.Client.DesignToolsClientLoader.d__27.MoveNext()
Steps to reproduce
Create any WinForms project, doesnt matter if its NET 3.1, 5.0 or 6.0.
Diagnostics
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
WinForms Designer breaks after a recompile
Not a fix, but in Visual Studio 2010 I've found out that the quickest way to get the form designer back on track...
Read more >Cannot debug net6.0-macos Apps - Developer Community
Create a macOS Application (New–>Mac–>App–>macOS Application). Click Run with Debug config (or Debug–>Start Debugging). The result will be found ...
Read more >When The Levee Breaks feat. John Paul Jones - YouTube
Creating these videos motivated PFC to form the Playing For Change Band—a tangible, traveling representation of its mission, ...
Read more >Changing Startup Form in VS 2022 Breaks Project.
When I attempt to change the startup form in a VB.NET project, I receive the following error. After the error pops up, the...
Read more >Design: Breaking down your project work | by Brian Barclay
A designer gets a new project to work on, the wheels start to spin, ideas start coming, and what we see in our...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
while i was trying to build the project a error occurred telling me to restore the nuget packages, so i did that and now it works again.
thanks i guess
@Chello1801 Requesting you to share following information: