title: Why project can't find Microsoft.Azure.WebJobs 3.0.0.0
body: <p>I have an Azure Functions (v2) project in Visual Studio 15.8.6, which has Azure Functions and Web Job Tools 5.2.60618.0 installed.  I'm using a ServiceBusTrigger. When I try to compile the project, I keeping getting:</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Error       System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.Azure.WebJobs, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null'
       at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
       at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
       at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
       at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly&amp; lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType&amp; attributeType, IRuntimeMethodInfo&amp; ctor, Boolean&amp; ctorHasParameters, Boolean&amp; isVarArg)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeParameterInfo parameter, RuntimeType caType)
       at System.Attribute.InternalParamGetCustomAttributes(ParameterInfo param, Type type, Boolean inherit)
       at MakeFunctionJson.ParameterInfoExtensions.GetDisabledAttribute(ParameterInfo parameterInfo)
       at System.Linq.Enumerable.WhereSelectArrayIterator<code>2.MoveNext()
       at System.Linq.Enumerable.WhereEnumerableIterator</code>1.MoveNext()
       at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable<code>1 source)
       at MakeFunctionJson.MethodInfoExtensions.GetDisabled(MethodInfo method)
       at MakeFunctionJson.MethodInfoExtensions.HasUnsuportedAttributes(MethodInfo method, String&amp; error)
       at MakeFunctionJson.FunctionJsonConverter.&lt;GenerateFunctions&gt;d__9.MoveNext()
       at System.Collections.Generic.List</code>1..ctor(IEnumerable<code>1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable</code>1 source)
       at MakeFunctionJson.FunctionJsonConverter.TryGenerateFunctionJsons()
       at MakeFunctionJson.FunctionJsonConverter.TryRun()</p>
    
    <p>WRN: Assembly binding logging is turned OFF. To enable assembly bind
    failure logging, set the registry value
    [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There
    is some performance penalty associated with assembly bind failure
    logging. To turn this feature off, remove the registry value
    [HKLM\Software\Microsoft\Fusion!EnableLog].</p>
    
    <p>Error generating functions metadata
      InSysFunctionDeviceMinuteDataProcessorV2    C:\Users\Dr Kurt
    Richardson.nuget\packages\microsoft.net.sdk.functions\1.0.22\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Build.targets  39</p>
  </blockquote>
  
  <p>Although it is complaining that Microsoft.Azure.WebJobs 3.0.0.0 is missing, it is clearly listed in the installed packages:</p>
  
  <p><a href="https://i.stack.imgur.com/6spPT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6spPT.png" alt="enter image description here"></a></p>
  
  <p>One thing I have noticed is that, although the project is using .NET Standard v2.0.3 the error message refers to a path containing <strong>netstandard1.0</strong> (...nuget\packages\microsoft.net.sdk.functions\1.0.22\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Build.targets 3) .  Nuget says that v1.0.22 of Microsoft.NET.Sdk.Functions targets <strong>.NETStandard, Version=v2.0</strong>.  Furthermore Microsoft.Azure.WebJobs is located in a <strong>netstandard2.0</strong> folder.  Could this be the problem? Or something else?</p>