I am currently experiencing a problem in one of my Azure Functions. I want to use a library that makes use of ValueTuple. The lib is built against .net Core 2.0. This leads to the following error message in my function:
Reference to type 'ValueTuple<,>' claims it is defined in 'System.Runtime', but it could not be found
I already tried to add the corresponding Nuget Package to my function:
{
"frameworks": {
"net46":{
"dependencies": {
"DocX": "1.2.1",
"MediaTypeMap": "2.1.0",
"System.ValueTuple": "4.5.0"
}
}
}
}
and referencing the assembly with:
#r "System.ValueTuple"
Any ideas how I could solve this?
Thanks a lot!
This is not going to work, according to the docs the V1 version cannot use .Net Core 2 libraries. Only v2 can.
So, try modifying the library to target .Net standard or migrate to Azure Functions V2: