I'm trying to write an Azure function to unzip a large file and with that comes importing various libraries which I put at the top of my "run.csx" file.
I have created my AF using the portal and on clicking the "Test-Run", I get a warning "You may be referencing NuGet packages incorrectly. Learn more: https://go.microsoft.com/fwlink/?linkid=2091419". Following that link it says
"To use NuGet packages in a 2.x and later C# function, upload a function.proj file to the function's folder"
and
"For 1.x functions, use a project.json file instead"
Now the portal development environment gives a "function.json", is that the same as a "function.proj" or "project.json"? I'm assuming I'm using a "2.x and later" environment (think I chose 3.1 - only choice in fact) but don't know how to be certain?
So, should I be creating a separate file or using "function.json" (just noticed it is XML as the format so suspect it is a separate file)?
The libraries I'm led to believe I need are
System.IO.Compression;
Microsoft.Azure;
Microsoft.WindowsAzure.Storage;
Microsoft.WindowsAzure.Storage.Blob;
so how do I translate that in to the format the "help" file suggests, namely:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ProjectOxford.Face" Version="1.1.0" />
</ItemGroup>
</Project>
Are they just a set of "PackageReference"s? What about version? Or do I need more?