Search

Adding C# class to SSDT project breaks Solution Explorer file expand and Code Map features for all projects in solution by PashaPash

Closed
as Fixed Help for as Fixed

7
0
Sign in
to vote
Type: Bug
ID: 774868
Opened: 12/20/2012 6:51:23 AM
Access Restriction: Public
0
Workaround(s)
3
User(s) can reproduce this bug
When class (or any C# file) added to SSDT project, solution explorer stops expanding files to class level. SL still shows expand ">" symbols for all files, but shows nothing in that file when clicked.
All projects in solution, not only SSDT project, are affected. Code Maps are broken for all projects too.

I tried to attach a debugger to VS, and got en exception when broken expand icon is clicked:
ArgumentNullException: "Value cannot be null.\r\nParameter name: key"
at
>    mscorlib.dll!System.Collections.Generic.Dictionary<System.Uri,Microsoft.RestrictedUsage.CSharp.Compiler.IDE.IDECompiler>.Insert(System.Uri key, Microsoft.RestrictedUsage.CSharp.Compiler.IDE.IDECompiler value, bool add) + 0x2c2 bytes    
    Microsoft.VisualStudio.Progression.LanguageService.CSharp.dll!Microsoft.VisualStudio.Progression.LanguageService.CSharp.CSLanSvcProvider.GetIDECompilers.AnonymousMethod__6(object objContext) + 0x25a bytes    
    Microsoft.VisualStudio.Progression.Common.dll!Microsoft.VisualStudio.Progression.UIThread.RunTask(Microsoft.VisualStudio.Progression.UIThread.TaskData taskData) + 0x46 bytes    
    Microsoft.VisualStudio.Progression.Common.dll!Microsoft.VisualStudio.Progression.UIThread.PumpTasks() + 0xac bytes    
    Microsoft.VisualStudio.Progression.Common.dll!Microsoft.VisualStudio.Progression.UIThread.OnTick(object sender, System.EventArgs e) + 0x15 bytes    
    WindowsBase.dll!System.Windows.Threading.DispatcherTimer.FireTick(object unused) + 0x2f bytes    

unloading SSDT project helps, but next time it's loaded Solution Explorer breaks again.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

1. Install SSDT c 11.1.21208.0 (http://msdn.microsoft.com/en-us/jj650015) (or previous version)
2. Create a Blank Solution
3. Add new SQL Server Database Project
4. Add new C# class (SQL Server/SQL CLR C#/Class item)
5. Add new C# Class Library Project
6. Try to expand Class1.cs in ClassLibrary1.
Expand does not work.

7. Unload SSDT project
8. Reload Class Library project
9. Try to expand Class1.cs in ClassLibrary1.
Expand works.

10. Reload SSDT project, Reload Class Library project again.
9. Try to expand Class1.cs in ClassLibrary1.
Expand does not work.

Product Language

English

Operating System

Windows 8

Operating System Language

English

Actual results

Solution Explorer Expand and Code Map does not work for all C# files in all projects in solution if C# class added to SSTD Project.

Expected results

Solution Explorer Expand and Code Map works when even if C# class added to SSTD Project.
File Attachments
File Name Submitted By Submitted On File Size  
ExpandIssue.zip 12/20/2012 256 KB
MemberOnReg[1].aspx 2/9/2013 27 KB
728x90_WP8_SDKKitP_EN_US[1].jpg 2/9/2013 21 KB
728x90_WP8_SDKKitP_EN_US[1].jpg (restricted) 2/9/2013 -
MemberOnReg[1].aspx (restricted) 2/9/2013 -
Sign in to post a comment.
Posted by Microsoft on 2/14/2013 at 2:16 PM
Thanks for the feedback. We have fixed this issue for the next release of the Visual Studio 2012 Update.
Posted by poochyellowbus182 on 2/10/2013 at 9:48 PM
It is late thank you good night.
Posted by Microsoft on 12/20/2012 at 11:16 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 12/20/2012 at 7:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by PashaPash on 12/20/2012 at 6:54 AM
I attached a sample project to reproduce the issue.
Sign in to post a workaround.