Reference c# class library in my Azure Function

前端 未结 2 1458
不思量自难忘°
不思量自难忘° 2021-01-04 06:28

Is it possible to reference a c# class library in an Azure Function visual studio project?

I am aware of the possibilities to reference external libraries and Nuget

相关标签:
2条回答
  • 2021-01-04 06:41

    This is now possible by using the new Visual Studio 2017 Tools for Azure Functions.

    You can get more information about this in the following links:

    • Visual Studio 2017 Tools for Azure Functions
    • Azure Functions Visual Studio Tooling video
    0 讨论(0)
  • 2021-01-04 06:53

    Currently, project references are not supported, but you can have the output of your project (the resulting assembly and possible dependencies) copied onto a folder under your function's root, which you can then leverage using the external libraries support you've mentioned above (e.g. #r "..\myassemblyfolder\MyAssembly.dll")

    If possible, I'd suggest opening an issue with that feature request, sharing more about your scenario on this repository. This allows other people to upvote those requests and helps the team prioritize this work.

    0 讨论(0)
提交回复
热议问题