@Scott Klein Thanks for reaching out. Thanks for confirmation that you have installed the .NET Framework Developer Pack 4.8, but can you also try to install both runtime and developer .Net Framework 4.8. Restart your system and verify if you still observe the same behavior.
Azure Functions in VS 2019 - missing reference assemblies

I am trying to build and deploy an Azure Function with VS 2019. I have installed, as far as I know, all the appropriate pre-reqs, but I continue to get the following error:
MSB3644 The reference assemblies for .NETFramework,Version=v4.8 were not found.
To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application.
You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
Per this, I have installed appropriate developer packs, but still get the same error. What am I doing wrong?
Thank you in advance,
Scott
Hi Mayan,
Actually, I solved that issue as well, but I have one other question. I am trying to understand the timer trigger NCRON expressions. I want the function to fire every day at 10pm. What is the appropriate expression for that?
@Scott Klein Azure Functions uses the NCronTab library to interpret NCRONTAB expressions. NCRONTAB expression supports both five field and six field formats. The sixth field position is a value for seconds which is placed at the beginning of the expression. For more details you can refer to this document.
You need to leverage CORN expression
0 0 22 * * *
so it execute your function app at 10:00 pm UTC every day. The default time zone used with the CRON expressions is Coordinated Universal Time (UTC)You can refer to below NCrontab Expression Tester: https://ncrontab.swimburger.net/
Alternative: https://crontab.guru/
Feel free to get back to me if you have any queries or concerns. Feel free to 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.
Thank you for your help Mayan. Greatly appreciated.
Sign in to comment