diff --git a/KeePassPluginDevTools.sln b/KeePassPluginDevTools.sln index ce3c89b..a50f498 100644 --- a/KeePassPluginDevTools.sln +++ b/KeePassPluginDevTools.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.23107.0 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.168 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SamplePlugin", "SamplePlugin\SamplePlugin.csproj", "{4B5B8E16-3542-4997-8BF3-2DFFF5E9F1C2}" EndProject @@ -144,6 +144,9 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {34BC3374-C348-42FC-AB5F-C9C7422942DA} + EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution StartupItem = PlgxTools\PlgxTools.csproj Policies = $0 diff --git a/PlgxTools/Microsoft.Build.Plgx.xsd b/PlgxTools/Microsoft.Build.Plgx.xsd old mode 100644 new mode 100755 index 06d4300..51dae02 --- a/PlgxTools/Microsoft.Build.Plgx.xsd +++ b/PlgxTools/Microsoft.Build.Plgx.xsd @@ -3,8 +3,11 @@ xmlns:msb="http://schemas.microsoft.com/developer/msbuild/2003" targetNamespace="http://schemas.microsoft.com/developer/msbuild/2003" elementFormDefault="qualified"> - - + + + + + diff --git a/PlgxTools/PlgxTool.csproj b/PlgxTools/PlgxTool.csproj old mode 100644 new mode 100755 index d8dfc86..d8d9615 --- a/PlgxTools/PlgxTool.csproj +++ b/PlgxTools/PlgxTool.csproj @@ -76,18 +76,16 @@ - - - - + + + - - + diff --git a/PlgxTools/Program.cs b/PlgxTools/Program.cs old mode 100644 new mode 100755 index 240434a..9e15518 --- a/PlgxTools/Program.cs +++ b/PlgxTools/Program.cs @@ -9,6 +9,7 @@ using KeePassLib; using System.Reflection; using System.Collections.Generic; +using System.Linq; namespace KeePassPluginDevTools.PlgxTools { @@ -214,12 +215,10 @@ public static int Main (string[] args) // include all of the project files unless specifically excluded var itemGroups = project.GetElementsByTagName ("ItemGroup"); foreach (XmlNode itemGroup in itemGroups) { - // make copy of nodes so that we can delete them inside of the for + // make copy of nodes except comments so that we can delete them inside of the for // loop if we need to - var children = new List (); - foreach (XmlNode child in itemGroup.ChildNodes) { - children.Add (child); - } + var children = itemGroup.ChildNodes.Cast().Where(child => child.NodeType != XmlNodeType.Comment).ToList(); + foreach (XmlNode child in children) { if (child.LocalName == "Reference") { foreach (XmlNode childMetadata in child.ChildNodes) {