EricDAllen on Sun, 27 Aug 2017 00:00:15
I've just created my first Function project in VS and have pulled in the NuGet package for
Microsoft.AspNet.WebHooks.Receivers.Slack (version 1.2.1)
The only other NuGet package I have is
Microsoft.NET.Sdk.Functions (version 1.0.2)
When I build, I get the error message down below here. The nuisance is that System.Web.Http is not only referenced, but it's IN my bin folder. The problem seems to be that its version is 5.2.3, and the Slack dll is built with "specific version" set to "true" on that reference, looking for 5.2.2.
I'm not seeing anything in the Function project documentation that tells me I can use an app.config setting to force recognition of 5.2.3 as a valid replacement for 5.2.2.
What am I missing?
Thanks in advance!
Severity Code Description Project File Line Suppression State
Error Could not load file or assembly 'System.Web.Http, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. iPlan.Functions C:\Users\Eric\.nuget\packages\microsoft.net.sdk.functions\1.0.2\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Build.targets 31
mamaso (MSFT) on Tue, 29 Aug 2017 19:01:37
This is an issue we've seen a lot and are working on resolving: https://github.com/Azure/azure-webjobs-sdk-script/issues/992#issuecomment-298624059
You might be able to have some success with this workaround: https://stackoverflow.com/a/44425580/5915331
EricDAllen on Tue, 12 Sep 2017 15:17:51
Well, I suppose that's comforting. But it seems like the combination of Microsoft's pre-built WebHooks and Function Apps is pretty much dead on arrival until this is resolved, short of the dirty hacks above. That's kind of a surprising letdown, to be honest.