title: C# NuGet package error in Azure DevOps with image
body: <p>I'm creating a NuGet package to distribute in my organization. Following a <a href="https://www.puresourcecode.com/dotnet/net-core/nuget-package-with-azure-devops/" rel="nofollow noreferrer">post</a> online, the pipeline is working. In Azure DevOps I created the <strong>Artifacts</strong>, the pipeline buils the NuGet package and push it in the Artifacts as I expected. I'm using Visual Studio 2021.</p>
  <p>So, in the property of the project I selected an icon.</p>
  <p><a href="https://i.stack.imgur.com/MZ75U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MZ75U.png" alt="enter image description here" /></a></p>
  <p>I committed this change and now Azure DevOps gives me an error. So, I created a folder in the project called <code>Images</code> and here I pasted the image I want to use and updated the path from Visua Studio. The error is the same.</p>
  <blockquote>
  <p>##[error]CSC(0,0): Error CS7064: Error opening icon file /home/vsts/work/1/s/Images/psc_logo.ico -- Could not find a part of the path '/home/vsts/work/1/s/Images/psc_logo.ico'.</p>
  </blockquote>
  <p>Also, in Visual Studio I see the package but the description and the author are different from what I filled in the property.</p>
  <p><a href="https://i.stack.imgur.com/jr7G3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jr7G3.png" alt="enter image description here" /></a></p>
  <p>How can I fix it?</p>
  <h2>Update</h2>
  <p>Although I added the properties in the <code>.csproj</code> file, Azure DevOps ignores completely them.</p>
  <pre><code>&lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;net5.0&lt;/TargetFramework&gt;
      &lt;GeneratePackageOnBuild&gt;True&lt;/GeneratePackageOnBuild&gt;
      &lt;Description&gt;Collection of useful functions&lt;/Description&gt;
      &lt;Copyright&gt;Enrico Rossini&lt;/Copyright&gt;
      &lt;PackageTags&gt;extensions, c#, net50&lt;/PackageTags&gt;
      &lt;SignAssembly&gt;False&lt;/SignAssembly&gt;
      &lt;Company&gt;Enrico Rossini&lt;/Company&gt;
      &lt;PackageReleaseNotes&gt;Collection of useful functions&lt;/PackageReleaseNotes&gt;
      &lt;PackageIcon&gt;psc_logo.png&lt;/PackageIcon&gt;
      &lt;ApplicationIcon&gt;psc_logo.ico&lt;/ApplicationIcon&gt;
      &lt;GenerateDocumentationFile&gt;True&lt;/GenerateDocumentationFile&gt;
      &lt;Authors&gt;Enrico Rossini&lt;/Authors&gt;
      &lt;AssemblyVersion&gt;1.0.2&lt;/AssemblyVersion&gt;
      &lt;FileVersion&gt;1.0.2&lt;/FileVersion&gt;
      &lt;Version&gt;1.0.2&lt;/Version&gt;
  &lt;/PropertyGroup&gt;
  
  &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;Newtonsoft.Json&quot; Version=&quot;13.0.1&quot; /&gt;
  &lt;/ItemGroup&gt;
  
  &lt;ItemGroup&gt;
      &lt;None Include=&quot;psc_logo.ico&quot; Pack=&quot;true&quot; PackagePath=&quot;&quot; /&gt;
      &lt;None Include=&quot;psc_logo.png&quot; Pack=&quot;true&quot; PackagePath=&quot;&quot; /&gt;
  &lt;/ItemGroup&gt;
  </code></pre>
  <p>You see in the picture below that <code>authors</code> and <code>description</code> has the default values.</p>
  <p><a href="https://i.stack.imgur.com/QIL7P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QIL7P.png" alt="enter image description here" /></a></p>
  <h2>Update</h2>
  <p>The project is Azure DevOps is exactly the same as the local one. The project settings are the same as above.</p>
  <p>When I run the pipeline in Azure DevOps I have this warning</p>
  <blockquote>
  <p>WARNING: NU5118: File '/home/vsts/work/1/s/PSC.Extensions/bin/Debug/net5.0/ref/PSC.Extensions.dll' is not added because the package already contains file 'lib/net50/PSC.Extensions.dll'</p>
  <p>WARNING: NU5115: Description was not specified. Using 'Description'.</p>
  <p>WARNING: NU5115: Author was not specified. Using 'vsts'.</p>
  </blockquote>
  <p>So, I changed the pipeline and in the package step I added the</p>
  <ul>
  <li><p>task: NuGetCommand@2</p>
  <pre><code>displayName: Prepare the package
  inputs:
    command: 'pack'
    packagesToPack: '**/*.csproj'
    versioningScheme: 'byEnvVar'
    versionEnvVar: 'PackageVersion'
    buildProperties: 'Authors=&quot;Enrico Rossini&quot;;Description=&quot;Test&quot;'
  </code></pre>
  </li>
  </ul>
  <p>but nothing.</p>