correct issue with multiple configuration files

vendorRequirement is mutated and subsequent attempts to match it will fail

git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/trunk@1609953 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/components/dotnet-packaging/src/main/java/npanday/packaging/ConfigFileHandler.java b/components/dotnet-packaging/src/main/java/npanday/packaging/ConfigFileHandler.java
index 96791d7..83c2e17 100644
--- a/components/dotnet-packaging/src/main/java/npanday/packaging/ConfigFileHandler.java
+++ b/components/dotnet-packaging/src/main/java/npanday/packaging/ConfigFileHandler.java
@@ -187,8 +187,13 @@
 
             final File targetConfigFile = new File( targetFolder, configFilePath );
 
+            // clone vendorRequirement as it gets mutated, which isn't good for loop
+            VendorRequirement vr = new VendorRequirement(vendorRequirement.getVendor(),
+                    vendorRequirement.getVendorVersion(), vendorRequirement.getFrameworkVersion());
+
+            // TODO: should pass in the wohle list and amend the file to minimise the number of msbuild invocations
             handleConfigFile(
-                vendorRequirement, configFile, transformationHint, targetConfigFile
+                vr, configFile, transformationHint, targetConfigFile
             );
         }
     }