Skip to content

Commit

Permalink
Fix issue with collapsed project items.
Browse files Browse the repository at this point in the history
  • Loading branch information
awulkiew committed Jun 15, 2020
1 parent 6147a9d commit fac5dbc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.0.0")]
[assembly: AssemblyFileVersion("1.5.0.0")]
[assembly: AssemblyVersion("1.5.1.0")]
[assembly: AssemblyFileVersion("1.5.1.0")]
7 changes: 7 additions & 0 deletions Visual_Studio_2017/ExcludeFromBuild/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ private static void SetExcludedFromBuildRecursive(IEnumerable items,
if (hitem == null)
continue;

// Not expanded UIHierarchyItems report 0 Items
if (!hitem.UIHierarchyItems.Expanded)
{
hitem.UIHierarchyItems.Expanded = true;
hitem.UIHierarchyItems.Expanded = false;
}

// Any container, e.g. filter or C# XAML, etc.
if (hitem.UIHierarchyItems.Count > 0)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ExcludeFromBuild.aff619f3-ad99-4246-b570-b012a51f21d3" Version="1.5.0" Language="en-US" Publisher="Adam Wulkiewicz" />
<Identity Id="ExcludeFromBuild.aff619f3-ad99-4246-b570-b012a51f21d3" Version="1.5.1" Language="en-US" Publisher="Adam Wulkiewicz" />
<DisplayName>Exclude from Build</DisplayName>
<Description xml:space="preserve">Exclude from build or include in build multiple files and directories with one click.</Description>
<License>LICENSE_1_0.txt</License>
Expand Down

0 comments on commit fac5dbc

Please sign in to comment.