title: Set the AssemblyName property of only one project in NAnt
body: <p>I am developing a ClickOnce-deployed application and would like to split my releases into multiple builds (a "stable" release and a "test" release). I know that to keep my test and stable releases separate, I need to set the "AssemblyName" property to be different. Here is what my call to MSBuild looks like in my NAnt script:</p>
  
  <pre><code>&lt;msbuild project="../MyProject/MyProject/MyProject.csproj" target="publish"&gt;
    &lt;property name="Configuration" value="Release"/&gt;
    &lt;property name="ApplicationVersion" value="${buildnumber.version}"/&gt;
    &lt;property name="ProductName" value="My Project (Test)"/&gt;
    &lt;property name="AssemblyName" value="MyProjectTest"/&gt;
    &lt;property name="InstallUrl" value="http://www.mycompany.com/software/MyProjectTest/"/&gt;
  &lt;/msbuild&gt;
  </code></pre>
  
  <p>However, one of the references of my project is a library which I also wrote myself. The reference is therefore to the <code>.csproj</code> file of the library instead of a DLL. The above MSBuild call seems to force the <code>AssemblyName</code> recursively down, setting the <code>AssemblyName</code> of my library project to also be "MyProjectTest", when I would like it to just be called "MyLibrary".</p>
  
  <p>Here's a snippet from <code>MyProject.csproj</code> (ie. MyProject's MSBuild script), showing the reference to the library:</p>
  
  <pre><code>&lt;ItemGroup&gt;
    &lt;ProjectReference Include="..\..\MyLibrary\MyLibrary\MyLibrary.csproj"&gt;
      &lt;Project&gt;{A011B373-74D3-45EF-92E2-F342C572402A}&lt;/Project&gt;
      &lt;Name&gt;MyLibrary&lt;/Name&gt;
      &lt;Private&gt;True&lt;/Private&gt;
    &lt;/ProjectReference&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  
  <p>I have a few workarounds which might work, like building the library separately and then setting the reference to point to the compiled DLL instead of the <code>.csproj</code> file, or manually copying-and-pasting the properly-compiled version of the library over from the stable release's folder, but what I would really like is for NAnt to work properly.</p>
  
  <p>So, I suppose my question is this: <em>Is there a way to force the <code>AssemblyName</code> of just one project using NAnt's <code>msbuild</code> task?</em></p>
  
  <p><em>Edit: Another little note: Another fellow a few years ago had this same issue but never got a satisfactory solution. You can read the question (and relevant comment) here: <a href="https://stackoverflow.com/questions/6996678/change-assemblyname-of-a-csproject-via-msbuild#comment8353672_6997225">Change AssemblyName of a csproject via msbuild</a></em></p>