From 88284cca3aa5e61f356e30f73a295832c4a56620 Mon Sep 17 00:00:00 2001 From: Marco Rizzo Date: Sun, 13 Jan 2019 01:10:54 -0800 Subject: [PATCH 1/3] Updated msbuild path to run with Visual Studio 2017 --- PlgxTools/Microsoft.Build.Plgx.xsd | 7 +++++-- PlgxTools/PlgxTool.csproj | 10 ++++------ 2 files changed, 9 insertions(+), 8 deletions(-) mode change 100644 => 100755 PlgxTools/Microsoft.Build.Plgx.xsd mode change 100644 => 100755 PlgxTools/PlgxTool.csproj 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 @@ - - - - + + + - - + From a32162c39cbcb45e0a78afe3eb7e40101bd227b9 Mon Sep 17 00:00:00 2001 From: Marco Rizzo Date: Sun, 13 Jan 2019 01:44:23 -0800 Subject: [PATCH 2/3] Fixed building failure when comments are present into sections --- KeePassPluginDevTools.sln | 7 +++++-- PlgxTools/Program.cs | 11 +++++------ 2 files changed, 10 insertions(+), 8 deletions(-) mode change 100644 => 100755 PlgxTools/Program.cs 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/Program.cs b/PlgxTools/Program.cs old mode 100644 new mode 100755 index 240434a..d5fee5d --- 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,13 +215,11 @@ 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); - } - foreach (XmlNode child in children) { + 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) { var assemblyPath = Path.GetFullPath ( From 4a5d2caf34bf28bbd150652d56dccfc424cb91df Mon Sep 17 00:00:00 2001 From: Marco Rizzo Date: Mon, 14 Jan 2019 00:38:42 -0800 Subject: [PATCH 3/3] Fixed indetation --- PlgxTools/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlgxTools/Program.cs b/PlgxTools/Program.cs index d5fee5d..9e15518 100755 --- a/PlgxTools/Program.cs +++ b/PlgxTools/Program.cs @@ -219,7 +219,7 @@ public static int Main (string[] args) // loop if we need to var children = itemGroup.ChildNodes.Cast().Where(child => child.NodeType != XmlNodeType.Comment).ToList(); - foreach (XmlNode child in children) { + foreach (XmlNode child in children) { if (child.LocalName == "Reference") { foreach (XmlNode childMetadata in child.ChildNodes) { var assemblyPath = Path.GetFullPath (