Bu hatayı, github repo'm (https://github.com/jthake/MicrosoftGraph-AzureFunctions/blob/master/MicrosoftGraphWebHook/) ayarlanmış olan Azure İşlevimi dağıtma konusunda alıyorum. Ne yazık ki çok spesifik değil… Bunu hata ayıklamanın doğru yolu ne olurdu?NuGet paketlerinden içe aktarma hatası nasıl hata ayıklanır?
"As expcted, the Azure Functions runtime will automatically add the references to the package assemblies, so you DO NOT need to explicitly add assembly references using #r "AssemblyName", you can just add the required using statements to your function and use the types defined in the NuGet package you've referenced."
belki zaten ref'd ama sonra montaj ref bulamadık bir hata attı #r ref şey çıkarmadan çalıştı:
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.MicrosoftGraphWebHook'. mscorlib: Multiple custom attributes of the same type found.
2016-04-06T00:29:25 Welcome, you are now connected to log-streaming service.
Bu
other thread bu yorum fark ettim.
bana farklı hata veriyor düzeltmek gerekir. NuGet'i doğru yüklemediğini düşünmemi sağlıyor. 2016-04-06T02: 17: 32.089 'MicrosoftGraphWebHook' işlevinin komut dosyası değişti. Yeniden yükleniyor. 2016-04-06T02: 17: 32.089 İşlev komut dosyasını derleme. 2016-04-06T02: 17: 32.245 (2,1): hata CS0006: 'Microsoft.IdentityModel.Clients.ActiveDirectory' meta veri dosyası bulunamadı 2016-04-06T02: 17: 32.245 (8,17): hata a1> CS0234: 'Microsoft' ad alanında 'IdentityModel' türü veya ad alanı adı mevcut değil (bir montaj başvurusu eksik misiniz?) 2016-04-06T02: 17: 32.245 Derleme başarısız oldu. Paket referansları için –
Jeremy, #r is ** not ** gerekli değildir. İşlevinizi dağıtmak için CI kullanıyor musunuz? Öyleyse, paket geri yüklemesini gerçekleştirmek için özel bir komut dosyası kullanıyor musunuz? –
Tamam, ben de geri döndüm ve # r ref'yi tekrar kullandım (kullanılmayan dize ref'yi kaldırdıktan sonra. Ama yine de eksik montajı yapacağım. İşte proje.json https://github.com/jthake/MicrosoftGraph-AzureFunctions/ blob/master/MicrosoftGraphWebHook/Project.json –