Truth be told – I haven’t done a lot of ASP.NET dev over the last couple of years, but since I do a good amount of maker projects that involve webhooks, I had to checkout the new ASP.NET WebHooks feature.
I went to install the Nuget packages recommended by this article and got this error:
Install-Package : Failedtoaddreferenceto'System.IO'. Please make sure that it isin the GlobalAssembly Cache.
At C:\users\jong\documents\visual studio 2015\Projects\webhookstest1\nuget-install.ps1:2char:1
Package'Microsoft.AspNet.DataProtection 1.0.0-beta6' does not exist inproject'webhookstest1'
It could have surfaced via the following exception as well:
Error CS1061 'HttpConfiguration' does not contain a definition for'InitializeCustomWebHooksAzureStorage'and no extensionmethod 'InitializeCustomWebHooksAzureStorage' acceptingafirstargumentoftype 'HttpConfiguration' couldbefound(are you missing a using directive or an assemblyreference?)
WebApplication4c:\users\jong\documents\visual studio 2015\Projects\WebApplication4\WebApplication4\App_Start\WebApiConfig.cs 24
It looks like Microsoft.AspNet.DataProtection is also required. I created a gist that includes all the dependencies you need.
Just copy that ps1 file to your solution folder and run it in the Package Manager Console