title: How to set publishName/AssemblyName in msbuild command line parameters?
body: <p>There are two names for the application that you are publishing, the productName and the publishName (publishName/AssemblyName I think they are the same). Both of which you can specify in your .csproj file. </p>
  
  <p>I want to set both of these without changing the .csproj file using MSBuild's command line parameters. So far I have used <a href="http://msdn.microsoft.com/en-us/library/ms165431.aspx" rel="noreferrer">this</a> page from msdn and figured out how to change the product name.</p>
  
  <pre><code>MSBuild.exe /t:Build /p:ProductName=$productName. 
  </code></pre>
  
  <p>How can I change the publishName in a similar fashion?</p>
  
  <p>When I say publishName I mean the file that gets created with the .application extension. Anyone know what property I need for this - /p:*?</p>
  
  <p>I have also checked out a <a href="https://stackoverflow.com/questions/10613725/set-application-name-in-msbuild-parameters">Stack Overflow page</a> and tried all of the suggestions there but they didn't work.</p>