Closed richardjharding closed 7 years ago
This is probably going to be due to the fact that the AlexaSkillsKit library is an old style .net library using the old format .csproj.
The issue is that Binding Redirects aren't being generated automatically, if you add the following to your .csproj:
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
You will end up with a [FunctionsProjectName].dll.config file which should have the correct Binding Redirects in it for consuming a different version of json.net than what the alexa skills kit library is expecting.
However, this still won't help you when it comes to debugging, the Functions debug CLI doesn't support Binding Redirects for some reason, I haven't had a chance to investigate properly yet, when I do so I will probably raise a new bug here for the guys to look at.
The best temporary solution is to drop your version of newtonsoft.json down to 9.0.0 if the rest of your references can accept that.
The problem is actually that we don't support binding redirects (in either the CLI or the runtime in Azure). So, you need to use the exact version that we provide in the runtime. The easiest way to discover these versions is to look at the dependencies of the NuGet package https://www.nuget.org/packages/Microsoft.Azure.WebJobs/2.1.0-beta1. This package is automatically added when you create a new Functions project in Visual Studio.
So, you need to drop down to Newtonsoft 9.0.0. In the future, we'll make this more streamlined, so it's easier to get the right dependencies.
We have an open feature request for binding redirects. See https://github.com/Azure/azure-webjobs-sdk-script/issues/573
Any update on this? Still have this..
@tomkerkhove Please watch https://github.com/Azure/azure-webjobs-sdk-script/issues/573 for updates.
I'm trying to use the AlexaSkillsKit.net package AlexaSkillsKit
With the latest tooling vs2017 preview, azure functions sdk
Adding a function compiles fine until I add the reference to the package above and attempt to use it in the function
Here is my csproj
and here is the error
Looking at the nuget packages for both the functions sdk and alexaskillskit both seem to be satisfied by the version of newtonsoft referenced so I'm struggling to see how to resolve the error?