title: using Init.ps1 to add item in the csproj file
body: <p>i am using Nuget to install a package due to some restrictions i have to generate a reference and the path of the assembly in my <code>csproj</code> file. </p>
  
  <p>i am think of doing it with <code>Init.ps1</code> file which runs when you first install the package.
  the element that i want to add is the <code>Reference</code> element  some thing like.</p>
  
  <p>and should be like </p>
  
  <pre><code>&lt;Reference Include="Library.MyLib.Imaging, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL"&gt;
    &lt;SpecificVersion&gt;False&lt;/SpecificVersion&gt;
    &lt;HintPath&gt;..\packages\SDK.0.9.2\lib\wp8\X86\Library.mylib.Imaging.winmd&lt;/HintPath&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p>Can some body guide me that how i can add these to the csproj file. i belive that <code>AddItem</code> method can be used from the <code>Project</code> Class</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/microsoft.build.evaluation.project_methods.aspx" rel="nofollow">project Class Reference</a></p>
  
  <p>thanks</p>