title: Set Product Version and File Version to different numbers in C#
body: <p>In a C++ project, I can add different Product Version and File Version values to my assembly using <a href="https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource" rel="nofollow noreferrer">VERSIONINFO</a> in a Version resource file:</p>
  
  <pre><code>#define VER_PRODUCTVERSION          1,0,0,0
  #define VER_PRODUCTVERSION_STR      "1.0\0"
  
  #define VER_FILEVERSION             1,0,0,1
  #define VER_FILEVERSION_STR         "1.0.0.1\0"
  </code></pre>
  
  <p>This appears in the DLL properties as:</p>
  
  <p><a href="https://i.stack.imgur.com/E7OF3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E7OF3.jpg" alt="cpp-details"></a></p>
  
  <p>I'm having trouble achieving the same in a C# project.  I've set the following in the AssemblyInfo.cs file:</p>
  
  <pre><code>[assembly: AssemblyVersion("1.0")]
  [assembly: AssemblyFileVersion("1.0.0.1")]
  </code></pre>
  
  <p>However, in the DLL properties, both are set to the value of File Version:</p>
  
  <p><a href="https://i.stack.imgur.com/zxNw2.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zxNw2.jpg" alt="cs-details"></a></p>
  
  <p>How can I set Product Version and File Version to different values in a C# DLL?  I'm using Visual Studio 2019.</p>