簡體   English   中英

無法將 nuget package 安裝到 azure ZC1C425268E68385D1AB50741C

[英]Unable to install nuget package into azure function

I am just starting to use Azure functions in the logic apps.I have created a function that i am trying to use a Nuget package HTMLAgilityPack and getting it install via the console (in classic view). 但它提到沒有找到項目?

在此處輸入圖像描述

To use NuGet packages in a 2.x and later C# function, upload a function.proj file to the function's folder in the function app's file system. 這是一個示例function.proj文件,它添加了對HtmlAgilityPack版本1.11.24的引用:

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="HtmlAgilityPack" Version="1.11.24" />
    </ItemGroup>
</Project>

在此處輸入圖像描述

using HtmlAgilityPack; 在代碼上方,請參閱下面的快照:

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM