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
:
<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;
above the code, refer to the snapshot as below:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.