Adding an item to a project with subfolders asserts


The assert is in OAProjectItems.cs at line 193:
Debug.Assert(nodeAdded != null, "We should have been able to find the new element in the hierarchy");
It fails when trying to find a hierarchy node because the name that is passed in is an absolute path, and the virtual node name of each tree node is just the file name with no path information included. The problem doesn't seem to occur with flat projects. I fixed the problem by changing HierarchyNode.FindChild() to check for FileNodes in the search loop, and check "name" against the Url property of FileNodes.