简体   繁体   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). 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). But it mentions that no project found?但它提到没有找到项目?

在此处输入图像描述

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. 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. Here is an example function.proj file that adds a reference to HtmlAgilityPack version 1.11.24 :这是一个示例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>

在此处输入图像描述

And add using HtmlAgilityPack;using HtmlAgilityPack; above the code, refer to the snapshot as below:在代码上方,请参阅下面的快照:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM