[英]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.