question

MSTechie-7364 avatar image
0 Votes"
MSTechie-7364 asked sadomovalex answered

Can we deploy .net 4.5 console app in Azure Functions ?

Can we deploy .net 4.5 console app in Azure Functions using the PowerShell approach ? Yes or No

Should we upgrade the application to .net 4.7.2 to be able to run it in Azure Functions ?

Any link on this would be helpful

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

sadomovalex avatar image
0 Votes"
sadomovalex answered

it should be Class Library and contain number of functions with specific trigger type (http trigger, queue ). There is specific project template in VS "Azure function" which in fact is class library:
101670-2021-06-02-17-47-00.png

If you want to use .Net framework you need to create v1 function (v2 is for .Net core). When you create it - it will automatically use .Net framework 4.6. If you will try to change it to 4.5 - code won't compile. But changing to 4.7.2 will work - so you may use that.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.