问题
Does anyone have the issue with Resharper where opening a solution with MVC projects causes Visual studio to close/crash? No Errors, no warning, just close.
To fix the problem, I have to delete the bin and obj folders from the MVC project directory which allows the solution to be opened again.
When the solution is loaded, sometimes opening a .aspx/ascx file will close visual studio too.
I've never lost any work from this other than the occasional mismatched project/file system.
Any help is greatly appreciated.
回答1:
This was happening for me too (I also have PowerCommands and R# 4.5).
This question has quite a few different suggestions you could try: 500696 - why-does-visual-studio-crash-opening-aspx-with-mvc-rc1
I basically followed the steps outlined by Steve Mason by doing a 'Clean' of my solution and the ngen update step.
I seem to be OK for now (fingers crossed)...
回答2:
Which version of R# are you using? I suggest
- first trying it out with the latest official R# version
- if that doesn't help, try with some of the R# nightly builds
R# can be unstable, in general - I've downloaded the latest official version yesterday and it constantly reports exceptions (not fatal ones though). The latest nightly build seems to be more stable.
回答3:
Have you got PowerCommands installed? Try uninstalling/disabling and see if everything works. In fact, try this for each of your VS addins.
来源:https://stackoverflow.com/questions/1361291/resharper-r-4-5-and-mvc-1-0-solutions-cause-visual-studio-2008-sp1-to-crash