Karel Goderis
Karel Goderis

Reputation: 163

Reference dll in my precompiled C# Azure Function

In reference to Reference c# class library in my Azure Function I would like to ask the same question how to achieve this - with a precompiled C# Azure function - with any kind of .dll (that is provided as such, thus not a NuGet) - within VS Code

AFAIK this is not documented

Upvotes: 2

Views: 1080

Answers (1)

Jerry Liu
Jerry Liu

Reputation: 17790

Add a folder like MyAssemblies containing our dlls under function app folder.

Then add references in functionappname.csproj.

<ItemGroup>
    <Reference Include="MyCustomDll">
      <HintPath>./MyAssemblies/MyCustomDll.dll</HintPath>
    </Reference>
</ItemGroup>

Upvotes: 2

Related Questions