-
Notifications
You must be signed in to change notification settings - Fork 67
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
I tried Entity Framework Core 3 (netstandard2.1) with Azure Functions v3 (netcoreapp3.0), an error occurred in Metadata Generator. #351
Comments
Updating to 3.0.0-preview1 fixed compilation when trying to debug or run the application from visual studio but when trying to publish to azure the metadata fails to generate. |
Can you share what your project file looks like? We shouldn't be calling |
|
Here is my pubxml as well
|
I believe that I found the issue I removed an unused package from the PCFL.PestRotues.Client. This package dependency seams to have caused the issue. Now I am able to publish but I get a SqlClient Not supported Exception when I try to use Entity Framework.I have tried with both EF Core 2.2.6 and EF Core 3.0.0 and EF Core 3.1 Preview. |
If you're able to reproduce the error above, please let me know. It certainly looks like the build is using the old version of the FunctionGenerator as we no longer make those API calls in 3.0.0-preview1. If we can figure out how that happened, it'd be very helpful. I'm going to close this for now (please re-open if you see it again with more details) -- I'm going to look at the SqlClient issue now. |
It appears that issues #349 is also affecting publishing using visual studio 2019 16.4.0 Preview 5.0
1>------ Build started: Project: PCFL.NiceInContact.WebHooks, Configuration: Release Any CPU ------
1>You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
1>PCFL.NiceInContact.WebHooks -> C:\Users\ialastairhunter\source\repos\PCFL.NiceInContact.WebHooks\PCFL.NiceInContact.WebHooks\bin\Release\netcoreapp3.0\bin\PCFL.NiceInContact.WebHooks.dll
2>------ Publish started: Project: PCFL.NiceInContact.WebHooks, Configuration: Release Any CPU ------
2>You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
2>PCFL.NiceInContact.WebHooks -> C:\Users\ialastairhunter\source\repos\PCFL.NiceInContact.WebHooks\PCFL.NiceInContact.WebHooks\bin\Release\netcoreapp3.0\bin\PCFL.NiceInContact.WebHooks.dll
2>System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
2>File name: 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
2> at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
2> at System.Reflection.RuntimeAssembly.GetExportedTypes()
2> at MakeFunctionJson.FunctionJsonConverter.TryGenerateFunctionJsons()
2> at MakeFunctionJson.FunctionJsonConverter.TryRun()
2>
2>
2>Error generating functions metadata
2>
2>Metadata generation failed.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
The text was updated successfully, but these errors were encountered: