Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Azure functions publish does not copy all files

$
0
0

When I publish my azure functions to azure not all of my referenced packages are being copied. I thus get an error stating that a specific file (Microsoft.CodeAnalysis.dll) cannot be found.

I have made sure that the package is referenced in my azure function project:

enter image description here

and have checked that it is in the .csproj file:

enter image description here

When I build locally the file is included in the \bin directory:

enter image description here

but when I publish to azure the file is missing:

enter image description here

This gives me run time error when the file is referenced:

enter image description here

How do I force the file to be included in the publish to azure, there is no option to "copy to output directory", or similar, in this instance in Visual Studio:

enter image description here


Viewing all articles
Browse latest Browse all 3067

Trending Articles