[英]Unable to install nuget package into azure function
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.