-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Functions issue? #71
Comments
Sounds like you need to figure out how to do assembly binding in Azure Functions. I haven't worked with Functions thus far so I'm not much help, sorry. |
I would love to try that, but there's no web.config/app.config for Azure Functions :-/ |
Hi @mgroves, binding redirects are not supported by Azure Functions v1 because of this issue. So the options are:
|
I've come up with a workaround that seems to be okay so far: I've created a second project and put all the AlexaSkill code into that project, and reference the project from the Functions project. The Functions project still needs an AlexaSkills reference, but now everything seems to compile okay. |
My personal Skill also implemented as Azure Function. Azure Functions v1 currently only support Newtonsoft.Json 9.0.1, so I use this version. I have same compilation error, but only when rebuild project from scratch. Further builds are successful. Are you experiencing different behavior? |
Every compile causes a compile error. Though maybe I should double check, I may have been overly aggressive with using Rebuild (because of the error). |
Can we close it, as it is more of Azure issue and there is not much we can do, apart from releasing .Net Core library version? |
Finally I had to deal with this error, as I was unable to publish my Function to Azure. It seems to be a known issue in Azure function generator. The solution is to mark your custom speechlet class as internal. Alternatively, you can move speechlet class to separate project as mentioned by @mgroves Note: To make speechlet visible for unit tests project, add |
I'm creating an Azure Function to act as a backend for an Alexa skill.
All I've done so far in Visual Studio:
Speechlet
implementationWhen I compile, I get an error:
But according to NuGet in Visual Studio, it's not trying to use 7.0.0.0, it's using 9+. I've tried updating and downgrading the JSON.net package. I've tried Clean/Rebuild/restarting from scratch.
I thought that maybe assembly binding might be the answer, but there's no Web.config or App.config in an Azure Functions project.
What am I missing? How do I get rid of this error?
Speechlet code:
Azure Function:
I think this may be an issue with the Azure Functions SDK, but is there some way to workaround it?
The text was updated successfully, but these errors were encountered: