mtherien / slntools

Solution Tools for Visual Studio - manages solution files
MIT License
28 stars 14 forks source link

Service Fabric projects cause NullReferenceException #14

Open jberezanski opened 4 years ago

jberezanski commented 4 years ago

When trying to create a filter for a solution containing Service Fabric projects (*.sfproj), when I check the checkbox next to such a project, an exception is thrown from Project.Dependencies:

System.NullReferenceException: Object reference not set to an instance of an object. at CWDev.SLNTools.Core.Project.d__f.MoveNext() at CWDev.SLNTools.Core.Filter.FilterFile.AddRecursiveDependenciesToList(List`1 includedProjects, Project project) at CWDev.SLNTools.Core.Filter.FilterFile.ApplyOn(SolutionFile original) at CWDev.SLNTools.UIKit.CreateFilterForm.UpdateTreeView() at CWDev.SLNTools.UIKit.CreateFilterForm.m_treeview_AfterCheck(Object sender, TreeViewEventArgs e)

The same exception happens if I edit the slnfilter file by hand, add an appropriate <ProjectToKeep> element and try to invoke "Create Filtered Solution Only" from the shell context menu.