title: how to pass variable number of items in PropertyGroup/ItemGroup to msbuild script
body: <p>Please read till I state my question clearly. I'm trying to implement a custom msbuild task that will accept a variable number of input parameters from a msbuild script. I am aware of arrays of input parameters in customs tasks</p>
  
  <pre><code>public ITaskItem[] ArrayofItems { get; set; }
  </code></pre>
  
  <p>These can be declared as follows using either propertygroup/itemgroup</p>
  
  <pre><code>&lt;PropertyGroup&gt;
  &lt;Item1&gt;1&lt;/Item&gt;
  &lt;Item2&gt;2&lt;/Item&gt;
  &lt;Item3&gt;3&lt;/Item&gt;
  &lt;Item4&gt;4&lt;/Item&gt;
  &lt;Item5&gt;5&lt;/Item&gt;&lt;/PropertyGroup&gt;
  
   &lt;ItemGroup&gt;
  &lt;File Include="1"&gt;&lt;/File&gt;
  &lt;File Include="2"&gt;&lt;/File&gt;
  &lt;File Include="3"&gt;&lt;/File&gt;
  &lt;File Include="4"&gt;&lt;/File&gt;
  &lt;File Include="5"&gt;&lt;/File&gt;  &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>Then from VS 2010 command line I can set/override the property as following</p>
  
  <p>msbuild somefile.csproj /t:MyTarget /p:Item1=Name1;Item2=Name2...etc</p>
  
  <p>My question is :- Is it possible to declare variable number of propertygroup/itemgroup in the build file so that I can pass in 'n' variable parameters from msbuild command line something like this using propertygroup/itemgroup?</p>
  
  <p>msbuild somefile.csproj /t:MyTarget /p:Item1=Name1;Item2=Name2;ItemN=NameN ('N' Only for illustration purposes)</p>
  
  <p>Is this even possible?</p>
  
  <p>Thanks in advance, Any help will be greatly appreciated.</p>