slntools icon indicating copy to clipboard operation
slntools copied to clipboard

Service Fabric projects cause NullReferenceException

Open jberezanski opened this issue 5 years ago • 0 comments

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.<get_Dependencies>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.

jberezanski avatar May 05 '20 18:05 jberezanski