title: External dependencies in Azure functions with netcore
body: <p>I've been able to get Azure functions written in net core to run. I now have added a reference to "WindowsAzure.Storage" and am now getting loaderexceptions when I use the local test environment ("func host start").</p>
  
  <p>I can not use the default table storage binder as I need to upsert records in different tables.</p>
  
  <p>I use precompiled functions and am developing with VSCode on OSX. I can't find any info if this scenario is supported or not. Is it even possible to get external dependencies working with the 2.0 runtime of Azure functions.</p>
  
  <p>The local SDK/runtime is</p>
  
  <ul>
  <li>Azure Functions Core Tools (2.0.1-beta.21)</li>
  <li>Function Runtime Version: 2.0.11370.0</li>
  </ul>
  
  <p>My csproj file</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netstandard2.0&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.0-beta3" /&gt;
      &lt;PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.0-beta3" /&gt;
      &lt;PackageReference Include="WindowsAzure.Storage" Version="8.6.0" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;Reference Include="Microsoft.CSharp" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;None Update="host.json"&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/None&gt;
      &lt;None Update="SearchTwitter\function.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>
  
  <p>Part of my function</p>
  
  <pre><code>namespace MyProject.Functions
  {
      public class SearchFunction
      {
  
          public async static Task Run(TimerInfo myTimer, Binder binder, TraceWriter log)
          {
  
              CloudStorageAccount storageAccount = CloudStorageAccount.Parse(System.Environment.GetEnvironmentVariable("StorageConnection", EnvironmentVariableTarget.Process));
              CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
              CloudTable searchMetaDataTable = tableClient.GetTableReference("SearchMetaData");
              await searchMetaDataTable.CreateIfNotExistsAsync();
  
          }
   }
  </code></pre>
  
  <p>Function.json</p>
  
  <pre><code>{
      "bindings": [
          {
              "type": "timerTrigger",
              "direction": "in",
              "schedule": "0 */15 * * * *",
              "runOnStartup": true,
              "name": "myTimer"
          }
      ],
      "scriptFile": "../MyProject.Functions.dll",
      "entryPoint": "MyProject.Functions.SearchFunction.Run"
  }
  </code></pre>