Don't see Clean solution option in Visual Studio

柔情痞子 提交于 2019-12-31 01:40:28

问题


For one of the solutions, I don't see the Clean Solution option neither in the context menu when I right click on the solution name in the Solution Explorer nor in the Build menu. When I make any changes to the project and debug, VS never hits the break point and I get the "The breakpoint will not currently be hit. The source code is different from the original version." message. My understanding is that I need to clean the solution.

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


回答1:


Finally had to create a brand new solution and add the projects from the older solution to the newly created one. Not sure what the problem was, but this helped.




回答2:


I also faced the similar problem recently and this is what I came to.




回答3:


If you are using website project then their wont be clean solution option,it's available only with web application projects.




回答4:


I guess you are running an older code version than the one you want to debug on. Rebuild the project(s), paying attention to dependencies. Use the "Rebuild" feature.




回答5:


I had the same problem. Visual Studio was building my old code with debug. I opened a new instance of Visual Studio and opened my solution with it and it now works fine. No idea what happened.




回答6:


If it's a Web application project, just clean it yourself by nuking all DLLs in the bin. Then rebuild. I assume it builds without errors?




回答7:


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

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




回答8:


If you're running a web site, as apposed to a web application project, you probably don't have an actual solution, or even a project file.

For a web site, you need to rebuild the website (from the build menu), or manually delete all of the dlls to accomplish the same thing.

Edit:

How are you debugging? Are you using Cassini (the built in visual studio debugger), or attaching to an IIS process?

I would also try this:

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



来源:https://stackoverflow.com/questions/2828797/dont-see-clean-solution-option-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!