Don't see Clean solution option in Visual Studio

For one of the solutions, I don’t see the “Clean solution” option in the context menu when I right-click on the name of the solution in the solution explorer or in the “Build” menu. When I make any changes to the project and debug, VS never hits the breakpoint, and I get "The breakpoint will not be deleted at this time. The source code is different from the original version." message. I understand that I need to clear the solution.

For other solutions, I see a Clean solution, and I don't have the same problem.

+4
source share
8 answers

Finally, we had to create a completely new solution and add projects from the old solution to the newly created one. I don’t know what the problem is, but it helped.

+4
source

I recently encountered a similar problem, and this is exactly what I came to. enter image description here

+4
source

If you are using a website project then they will not be a clean solution, it is only available with web application projects.

+4
source

I assume that you are using an older version of the code than the one you want to debug. Rebuild project (s), paying attention to dependencies. Use the Restore function.

+1
source

I had the same problem. Visual Studio created my old debugging code. I opened a new instance of Visual Studio and opened my solution, and now it works great. I don’t know what happened.

+1
source

If this is a web application project, just clean it by running all the DLLs in the trash. Then rebuild. I assume that he builds without errors?

0
source

You can also clean using devenv /clean SolnConfigName SolutionName in a command line environment.

Here is the link: http://msdn.microsoft.com/en-us/vstudio/aa718635.aspx

0
source

If you use a website that is associated with a web application project, you probably do not have the actual solution or even the project file.

For a website, you need to rebuild the website (from the build menu) or manually remove all the DLLs to accomplish the same thing.

Edit:

How do you debug? Are you using Cassini (the built-in visual studio debugger) or are you connecting to the IIS process?

I will also try:

Go to the folder C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET and delete the folder with the same name as your website.

0
source

Source: https://habr.com/ru/post/1309687/


All Articles