Forum Discussion
johnjohn-Peter
Feb 03, 2024Iron Contributor
How i can create an Azure Function using .net 8.0 inside visual studio 2022 17.8.6
I have visual studio 2022 17.8.6, and .net 8.0 is installed as follow:-
but when i create a new azure function, as follow:-
the .net 8.0 is not listed inside the "functions worker", as follow:-
I also installed the .net 8.0 runtime inside my development machine without any luck
any advice how i can create azure function using .net 8.0 ?? Thanks
- Try this:
1. Navigate to Tools -> Options -> Projects and Solutions -> Azure Functions
2., Click on Check for Updates, then Download and install. (This may return immediately with no apparent effect, if this happens, try the alternate step below)
3. Restart Visual Studio
Copied from: https://developercommunity.visualstudio.com/t/Net-8-is-missing-for-Azure-Function-proj/10520997?port=1025&fsid=1b3d6114-b17d-4a1c-9d14-e71ebe349e39&q=azure+functions+8&ref=native&refTime=1707896522630&refUserId=5e5ab3ed-9f96-4dff-bbbf-9aa087bbcfab
- Per-Erik KristenssonCopper ContributorTry this:
1. Navigate to Tools -> Options -> Projects and Solutions -> Azure Functions
2., Click on Check for Updates, then Download and install. (This may return immediately with no apparent effect, if this happens, try the alternate step below)
3. Restart Visual Studio
Copied from: https://developercommunity.visualstudio.com/t/Net-8-is-missing-for-Azure-Function-proj/10520997?port=1025&fsid=1b3d6114-b17d-4a1c-9d14-e71ebe349e39&q=azure+functions+8&ref=native&refTime=1707896522630&refUserId=5e5ab3ed-9f96-4dff-bbbf-9aa087bbcfab