title: Error generating ClickOnce deployement of a Net 5 app with Net Std 2.1 libraries
body: <p>I recently started to develop a WPF project with Visual Studio 2019. (I'm new in the WPF world)</p>
  <p>My solution has the next projects:</p>
  <pre><code>MyProject.App (net5.0-windows10.0.18362.0 .exe)
  
      Dependencies:
          Microsoft.Extensions.Hosting
          Microsoft.NetCore.App
          Microsoft.WIndows.SDK.NET.Ref
          Microsoft.Windows.Desktop.App.WPF
          Newtonsoft.Json
          ModernWpfUI
          MyProject.Domain
          MyProject.Data
          MyProject.Services
  
  MyProject.Domain netstandard2.1 .dll)
  
      Dependencies:
          NetStandard.Library
  
  MyProject.Data (netstandard2.1 .dll)
  
      Dependencies:
          NetStandard.Library
          Dapper
  
  MyProject.Services (netstandard2.1 .dll) 
  
      Dependencies:
          NetStandard.Library
          MyProject.Domain
          MyProject.Data
  </code></pre>
  <p>Nugget packages information:</p>
  <ul>
  <li><a href="https://github.com/StackExchange/Dapper" rel="nofollow noreferrer">Dapper</a></li>
  <li><a href="https://github.com/Kinnara/ModernWpf" rel="nofollow noreferrer">ModernWpfUI</a></li>
  </ul>
  <p>When I try to publish the .App project using ClickOnce, I'm getting the next error:</p>
  <blockquote>
  <p>Publish has encountered an error.
  Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details.</p>
  </blockquote>
  <p>And the output says:</p>
  <pre><code>2&gt;Metadata file 'F:\Projectes\X3\MyProject\MyProject.Data\bin\Release\net5.0-windows10.0.18362.0\MyProject.Data.dll' could not be found
  2&gt;Metadata file 'F:\Projectes\X3\MyProject\MyProject.Domain\bin\Release\net5.0-windows10.0.18362.0\MyProject.Domain.dll' could not be found
  2&gt;Metadata file 'F:\Projectes\X3\MyProject\MyProject.Services\bin\Release\net5.0-windows10.0.18362.0\MyProject.Services.dll' could not be found
  </code></pre>
  <p>It seems it is looking for my library projects at: <code>\net5.0-windows10.0.18362.0</code> directory, but in fact they are generated at: <code>\netstandard2.1</code> folder.</p>
  <p>How can I solve it?</p>