title: the file @(ReferenceCopyLocalPath->; WithMetadatavalue('ReferenceSourceTarget', 'ProjectReference')-> to be packed was not found on disk
body: <p>I am creating a nuget package using the pack command that is in dot net standard and its generating the following error:</p>
  
  <pre><code>the file @(ReferenceCopyLocalPath-&gt;; WithMetadatavalue('ReferenceSourceTarget',
   'ProjectReference')-&gt; to be packed was not found on disk 
  </code></pre>
  
  <p>Below is my csproj file  </p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;    &lt;PropertyGroup&gt;
             &lt;Version&gt;1.4.3.8&lt;/Version&gt;
             &lt;PackageVersion&gt;$(Version)&lt;/PackageVersion&gt;
             &lt;PackageOutputPath&gt;..\build_output\packages&lt;/PackageOutputPath&gt;
             &lt;TargetFrameworks&gt;net461;netstandard2.0;netcoreapp2.1;netcoreapp3.0;net462;net47;net471;net472;netstandard2.1&lt;/TargetFrameworks&gt;
             &lt;GeneratePackageOnBuild&gt;false&lt;/GeneratePackageOnBuild&gt;
             &lt;AssemblyVersion&gt;$(Version)&lt;/AssemblyVersion&gt;
             &lt;FileVersion&gt;$(Version)&lt;/FileVersion&gt;
             &lt;IncludeSymbols&gt;true&lt;/IncludeSymbols&gt;
             &lt;Authors&gt;sn.synergy&lt;/Authors&gt;
             &lt;Company&gt;Gyldendal™&lt;/Company&gt;
             &lt;PackageTags&gt;Logger;Logging;Manager&lt;/PackageTags&gt;
             &lt;Copyright&gt;© Gyldendal&lt;/Copyright&gt;
             &lt;PackageProjectUrl&gt;https://gyldendaldenmark.visualstudio.com/Common
       Components/_git/logger&lt;/PackageProjectUrl&gt;
             &lt;RepositoryUrl&gt;https://gyldendaldenmark.visualstudio.com/Common Components/_git/logger&lt;/RepositoryUrl&gt;
             &lt;RootNamespace&gt;LoggingManager&lt;/RootNamespace&gt;    &lt;/PropertyGroup&gt;    &lt;PropertyGroup
       Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"&gt;
             &lt;DefineConstants&gt;DEBUG;TRACE&lt;/DefineConstants&gt;
             &lt;DebugType&gt;full&lt;/DebugType&gt;
             &lt;DebugSymbols&gt;true&lt;/DebugSymbols&gt;    &lt;/PropertyGroup&gt;    &lt;ItemGroup&gt;
             &lt;None Include="NLog.config"&gt;
                &lt;Pack&gt;true&lt;/Pack&gt;
             &lt;/None&gt;    &lt;/ItemGroup&gt;    &lt;ItemGroup&gt;
             &lt;None Update="NLog.xsd"&gt;
                &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
             &lt;/None&gt;    &lt;/ItemGroup&gt;    &lt;!--Common Package--&gt;    &lt;ItemGroup&gt;
             &lt;PackageReference Include="NLog" Version="4.6.7" /&gt;    &lt;/ItemGroup&gt;    &lt;!--Trageting .NET CORE (2.1, 3.0) &amp;&amp; .NET STANDARD
       (2.0,2.1) --&gt;    &lt;ItemGroup
       Condition="$(TargetFramework.StartsWith('netcore')) OR
       $(TargetFramework.StartsWith('netstandard'))"&gt;
             &lt;PackageReference Include="Newtonsoft.Json" Version="12.0.3" /&gt;
             &lt;PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" /&gt;
             &lt;!--&lt;PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="5.2.7" /&gt;--&gt;
             &lt;PackageReference Include="NLog.Extensions.Logging" Version="1.6.1" /&gt;
             &lt;PackageReference Include="NLog.WindowsEventLog" Version="4.6.7" /&gt;
             &lt;PackageReference Include="System.Diagnostics.EventLog" Version="4.6.0" /&gt;
             &lt;PackageReference Include="System.Configuration.ConfigurationManager" Version="4.6.0" /&gt;
             &lt;PackageReference Include="System.Data.SqlClient" Version="4.7.0" /&gt;
             &lt;PackageReference Include="System.Linq" Version="4.3.0" /&gt;
             &lt;PackageReference Include="Microsoft.Win32.Registry" Version="4.6.0" /&gt;    &lt;/ItemGroup&gt;    &lt;!--Targeting .NET FRAMEWORK
       (4.6.1 4.6.2)  --&gt;    &lt;ItemGroup Condition="'$(TargetFramework)' ==
       'net461' OR '$(TargetFramework)' == 'net462'"&gt;
             &lt;PackageReference Include="Newtonsoft.Json" Version="10.0.3" /&gt;
             &lt;PackageReference Include="Microsoft.AspNet.WebApi.Client" version="5.2.3" /&gt;
             &lt;PackageReference Include="Microsoft.AspNet.WebApi.Core" version="5.2.3" /&gt;
             &lt;PackageReference Include="NLog.Extensions.Logging" Version="1.5.4" /&gt;
             &lt;PackageReference Include="NLog.WindowsEventLog" Version="4.6.7" /&gt;
             &lt;PackageReference Include="System.Diagnostics.EventLog" Version="4.5.0" /&gt;
             &lt;PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" /&gt;
             &lt;PackageReference Include="System.Data.SqlClient" Version="4.6.1" /&gt;
             &lt;PackageReference Include="System.Linq" Version="4.3.0" /&gt;
             &lt;PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" /&gt;    &lt;/ItemGroup&gt;    &lt;!--Targeting .NET FRAMEWORK
       (4.7, 4.7.1, 4.7.2)--&gt;    &lt;ItemGroup Condition="'$(TargetFramework)'
       == 'net47' OR '$(TargetFramework)' == 'net471' OR '$(TargetFramework)' == 'net472'"&gt;
             &lt;PackageReference Include="Newtonsoft.Json" Version="12.0.2" /&gt;
             &lt;PackageReference Include="Microsoft.AspNet.WebApi.Client" version="5.2.3" /&gt;
             &lt;PackageReference Include="Microsoft.AspNet.WebApi.Core" version="5.2.3" /&gt;
             &lt;PackageReference Include="NLog.Extensions.Logging" Version="1.5.4" /&gt;
             &lt;PackageReference Include="NLog.WindowsEventLog" Version="4.6.7" /&gt;
             &lt;PackageReference Include="System.Diagnostics.EventLog" Version="4.5.0" /&gt;
             &lt;PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" /&gt;
             &lt;PackageReference Include="System.Data.SqlClient" Version="4.6.1" /&gt;
             &lt;PackageReference Include="System.Linq" Version="4.3.0" /&gt;
             &lt;PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" /&gt;    &lt;/ItemGroup&gt;    &lt;ItemGroup&gt;
             &lt;Folder Include="Properties\" /&gt;    &lt;/ItemGroup&gt;    &lt;ItemGroup&gt;
             &lt;ProjectReference Include="..\LoggingManager.Nlog.RabbitMQ.Target\LoggingManager.Nlog.RabbitMQ.Target.csproj"&gt;
                &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
             &lt;/ProjectReference&gt;    &lt;/ItemGroup&gt;    &lt;PropertyGroup&gt;
             &lt;TargetsForTfmSpecificBuildOutput&gt;$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage&lt;/TargetsForTfmSpecificBuildOutput&gt;
             &lt;!-- include PDBs in the NuGet package --&gt;
             &lt;AllowedOutputExtensionsInPackageBuildOutputFolder&gt;$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb&lt;/AllowedOutputExtensionsInPackageBuildOutputFolder&gt;
       &lt;/PropertyGroup&gt;    &lt;Target Name="CopyProjectReferencesToPackage"
       DependsOnTargets="ResolveReferences"&gt;
             &lt;ItemGroup&gt;
                &lt;BuildOutputInPackage Include="@(ReferenceCopyLocalPaths-&gt;;WithMetadataValue('ReferenceSourceTarget',
       'ProjectReference')-&gt;;WithMetadataValue('PrivateAssets', 'all'))" /&gt;
             &lt;/ItemGroup&gt;    &lt;/Target&gt;    &lt;ItemGroup&gt;
             &lt;Content Include="NLog.config"&gt;
                &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
             &lt;/Content&gt;    &lt;/ItemGroup&gt;    &lt;Target Name="PostBuild" AfterTargets="pack"&gt;
             &lt;Exec Command="nuget push &amp;quot;$(PackageOutputPath)\$(PackageId).$(PackageVersion).nupkg&amp;quot;
       -ApiKey 24FCB347-75E6-41D6-BF80-E49CB142C092 -Source &amp;quot;https://gyldendalnugetserver.azurewebsites.net/nuget&amp;quot;
       -ConfigFile &amp;quot;..\.nuget\nuget.config&amp;quot;&amp;#xD;&amp;#xA;nuget push &amp;quot;$(PackageOutputPath)\$(PackageId).$(PackageVersion).symbols.nupkg&amp;quot;
       -ApiKey 24FCB347-75E6-41D6-BF80-E49CB142C092 -Source &amp;quot;https://gyldendalnugetserver.azurewebsites.net/nuget&amp;quot;
       -ConfigFile &amp;quot;..\.nuget\nuget.config&amp;quot;&amp;#xD;&amp;#xA;Exit /B 0&amp;#xD;&amp;#xA;" /&gt;    &lt;/Target&gt; &lt;/Project&gt;
  </code></pre>