question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Everytime I create a new project the designer breaks

See original GitHub issue

Environment

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 Screenshot (75)

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ChelloVibescommented, Sep 14, 2022

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

0reactions
Shyam-Guptacommented, Sep 14, 2022

@Chello1801 Requesting you to share following information:

  • How is the project getting created? Using Visual Studio or using dotnet.exe CLI?
  • Once the project gets created, are you able to build it using Visual Studio without any error?
  • Does this issue also reproes for a WPF .NET project?
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found