title: Exception while executing Azure function v2 with aspnetcore3 - The system cannot find the file specified. System.Private.CoreLib
body: <p>I am using .net Core 3 with Azure function version 2 (Visual studio 2019 with .net framework 4.8).
  While executing the function below exception occours :</p>
  
  <blockquote>
    <p>System.Private.CoreLib: Exception while executing function:  </p>
    
    <p>Microsoft.Extensions.Configuration.AzureAppConfiguration: Could not
    load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral,
    PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file
    specified. </p>
    
    <p>System.Private.CoreLib: Could not load the specified file.</p>
  </blockquote>
  
  <p>Please help.</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
    &lt;PropertyGroup&gt;
  &lt;TargetFramework&gt;netcoreapp3.0&lt;/TargetFramework&gt;
      &lt;AzureFunctionsVersion&gt;v2&lt;/AzureFunctionsVersion&gt;
      &lt;DependsOnNETStandard&gt;true&lt;/DependsOnNETStandard&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.Azure.ServiceBus" Version="4.1.1" /&gt;
      &lt;PackageReference Include="Microsoft.ApplicationInsights" Version="2.11.0" /&gt;
      &lt;PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="3.2.0" /&gt;
      &lt;PackageReference Include="Microsoft.IdentityModel" Version="7.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.29" /&gt;
      &lt;PackageReference Include="NETStandard.Library" Version="2.0.3" /&gt;
      &lt;PackageReference Include="System.Text.Json" Version="4.6.0" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;None Include="******.cs" /&gt;
      &lt;None Include="******.cs" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\************" /&gt;
      &lt;ProjectReference Include="..\************" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;None Update="*******/function.json"&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/None&gt;
      &lt;None Update="*******/function.json"&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/None&gt;
      &lt;None Update="host.json"&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/None&gt;
      &lt;None Update="local.settings.json"&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
        &lt;CopyToPublishDirectory&gt;Never&lt;/CopyToPublishDirectory&gt;
      &lt;/None&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  
  </code></pre>