Google.Cloud.Dialogflow.V2 Could not load file or assembly Google.Protobuf
See original GitHub issueI have created a new Azure functions projects using .net core 2.0
And when I try to reference this package it says the following:
Http Functions:
Template: http://localhost:7071/api/Template
[2018-08-07 9:58:53 PM] Host started (1556ms) [2018-08-07 9:58:53 PM] Job host started [2018-08-07 9:58:53 PM] Host lock lease acquired by instance ID ‘0000000000000000000000007D34F7CB’. [2018-08-07 9:59:06 PM] Executing ‘Template’ (Reason=‘This function was programmatically called via the host APIs.’, Id=d2485387-4218-4fc9-8bc6-6599243eeb2b) [2018-08-07 9:59:06 PM] Executed ‘Template’ (Failed, Id=d2485387-4218-4fc9-8bc6-6599243eeb2b) [2018-08-07 9:59:06 PM] System.Private.CoreLib: Exception while executing function: Template. Project: Could not load file or assembly ‘Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604’. Could not find or load a specific file. (Exception from HRESULT: 0x80131621). System.Private.CoreLib: Could not load file or assembly ‘Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604’.
The function that is giving me the problem:
[FunctionName("Template")]
public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "post")]HttpRequest req, [Table("Template", Connection = "")]ICollector<Log> outTable)
{
var json= new StreamReader(req.Body).ReadToEnd();
var request = JsonConvert.DeserializeObject<WebhookRequest>(json);
I have tried installing the Nuget package manually but that didn’t work. Should I go back to .Net framework meanwhile this gets fixed or is a solution for this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top GitHub Comments
I’m just sorry I couldn’t give better news 😦
I’m hopeful that Azure Functions will get past this over time - it really needs to in order to work for modern NuGet realities.
@german95n thats great!
@jskeet Please reach out if you see any other users reporting problems loading these libraries in Azure Functions V2 so that we can investigate (unfortunately we do not have a good solution for users on V1)