title: Failure to build dll when adding a dll with nuget in the Library outtype in .netcore3.1
body: <p>I have a plugin application<a href="https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support" rel="nofollow noreferrer">(.net web site link)</a>. In the solution, there is a console application and projects of more than one library type. The selected plugins are being loaded and the application starts a listening.</p>
  <p>The problem is; If I add nugetten dll to a library type project, the compiled version of these dlls should be created when there is build in the folder I specified.</p>
  <p>.csproj;</p>
  <pre><code> &lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;
            &lt;PropertyGroup&gt;
              &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
              &lt;OutputType&gt;Library&lt;/OutputType&gt;
              &lt;SccProjectName&gt;SAK&lt;/SccProjectName&gt;
              &lt;SccLocalPath&gt;SAK&lt;/SccLocalPath&gt;
              &lt;SccAuxPath&gt;SAK&lt;/SccAuxPath&gt;
              &lt;SccProvider&gt;SAK&lt;/SccProvider&gt;
              &lt;AssemblyInfoFilePath&gt;Properties\AssemblyInfo.cs&lt;/AssemblyInfoFilePath&gt;
              &lt;UpdateAssemblyVersion&gt;True&lt;/UpdateAssemblyVersion&gt;
              &lt;UpdateAssemblyFileVersion&gt;True&lt;/UpdateAssemblyFileVersion&gt;
              &lt;UpdateAssemblyInfoVersion&gt;True&lt;/UpdateAssemblyInfoVersion&gt;
              &lt;AssemblyVersionSettings&gt;None.None.Increment.DateStamp&lt;/AssemblyVersionSettings&gt;
              &lt;AssemblyFileVersionSettings&gt;None.None.Increment.DateStamp&lt;/AssemblyFileVersionSettings&gt;
              &lt;AssemblyInfoVersionSettings&gt;None.None.Increment.DateStamp&lt;/AssemblyInfoVersionSettings&gt;
              &lt;PrimaryVersionType&gt;AssemblyVersionAttribute&lt;/PrimaryVersionType&gt;
              &lt;AssemblyVersion&gt;2.0.0.0&lt;/AssemblyVersion&gt;
              &lt;GenerateAssemblyInfo&gt;false&lt;/GenerateAssemblyInfo&gt;
              &lt;AppendTargetFrameworkToOutputPath&gt;false&lt;/AppendTargetFrameworkToOutputPath&gt;
              &lt;AppendRuntimeIdentifierToOutputPath&gt;false&lt;/AppendRuntimeIdentifierToOutputPath&gt;
            &lt;/PropertyGroup&gt;
            &lt;PropertyGroup Condition=&quot; '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' &quot;&gt;
          &lt;OutputPath&gt;..\Nemesis.Agent\bin\Debug\Plugins\PrinterPlugin\&lt;/OutputPath&gt;
          &lt;PlatformTarget&gt;x86&lt;/PlatformTarget&gt;
        &lt;/PropertyGroup&gt;
            &lt;ItemGroup&gt;
              &lt;PackageReference Include=&quot;itext7&quot; Version=&quot;7.1.13&quot; /&gt;
              &lt;PackageReference Include=&quot;PdfiumViewer.Core&quot; Version=&quot;1.0.4&quot; /&gt;
              &lt;PackageReference Include=&quot;PuppeteerSharp&quot; Version=&quot;2.0.4&quot; /&gt;
            &lt;/ItemGroup&gt;
            &lt;ItemGroup&gt;
              ...
            &lt;/ItemGroup&gt;
          &lt;/Project&gt;
  </code></pre>
  <p>packages;</p>
  <p><a href="https://i.stack.imgur.com/SEt34.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SEt34.png" alt="enter image description here" /></a></p>
  <p>folder</p>
  <p><a href="https://i.stack.imgur.com/A8Ecr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A8Ecr.png" alt="enter image description here" /></a></p>
  <p>I used this code In PrintPdfDocument;</p>
  <pre><code>var pdfDocument = PdfiumViewer.PdfDocument.Load(new MemoryStream(bytes));
  </code></pre>
  <p>error during runtime;</p>
  <p><a href="https://i.stack.imgur.com/MIGHN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MIGHN.png" alt="enter image description here" /></a></p>
  <p>I could not find the source of the error.I've tried other namespaces. The problem is solved if I manually move the compiled dll to the relevant folder. .net framework wasn't having this problem.</p>