Visual Studio 2015 is crashing when searching from Solution Explorer

前端 未结 4 850
孤街浪徒
孤街浪徒 2021-01-11 16:31

Visual Studio 2015 is crashing when searching from Solution Explorer. Is this known bug ? is there any workaround.

I am using Microsoft Visual Studio Professional 20

相关标签:
4条回答
  • 2021-01-11 17:00

    This could likely be because of 'Lightweight Solution Loading' is enabled. I had the same issue and when I turned it off it worked, you can do this on the main solution by right clicking and getting the list of the options.

    1. Right Click on the main Solution in the Solution Explorer panel.
    2. Then select 'Disable Light Weight Solution Load'
    0 讨论(0)
  • 2021-01-11 17:01

    There's an active bug for this issue.

    You can read up on it here

    From the comments, you can see that Safe Mode might have some success, but no official workaround is to be found in the bug report as of yet.

    0 讨论(0)
  • 2021-01-11 17:06

    I'm the one who filed the BUG in connect. It has three attached files, two crash dumps and one stack trace obtained from the event viewer. If you look at the connect BUG, you will see that another person can repro the bug and this case will be the third (please click on repro "I can too").

    I have an active thread on MSDN community forums where you can watch the complete stack trace of two crashs, in text format here.

    I'm a member of a developer team looking to move forward to VS 2015 and we need to migrate these existing projects, so I'm stuck. Any help will be greatly appreciated.

    What I have tried so far: reset user settings, delete the SUO files, with no success. Safe mode works, so it's probably an extension (not sure if it's an extension in VS 2012 or 2015, as in 2015 there are no extensions that I can disable), I'm trying now the last suggestion from the MSDN thread and I will post here if I can solve this.

    MC

    0 讨论(0)
  • 2021-01-11 17:13

    One of our team of developers found the BUG and how to reproduce it in a new project in VS 2015:

    1. Create a new VB windows forms project

    2. Add a class like this:

      Public class1
      
          Public event Test(byval a as string)
      
      End Class
      
    3. Save files and project

    4. Go to Solution Explorer and search Test

    5. VS Crashs

    If you declare the event as EventHandler it doesn't crash. The VS 2012 Solutions we are migrating use several events declared like this, the files I found to cause the crash contained events declared like this.

    So it's a BUG, you can repro it. Also, one of the projects contains 20k files and VS keeps freezing every 5 minutes, we are investigating that issue too.

    I commented the connect issue Here and I'm posting a new one.

    WORKAROUND: declare delegates like:

    Public Delegate Sub MyEventHandler(ByVal s As String)
    

    And use like:

    Public Event test As MyEventHandler
    

    Credits go to Kirill from our team.

    Regards,

    MC PD: I don't know why I can't edit my previous answer, so here's this one.

    0 讨论(0)
提交回复
热议问题