I have an app for a personal project set up as an app service on Azure. It used a WebHook to get the code, connecting it from the deployment center, but suddenly it started failing. The last commit, when it was working, was a week ago. So I set up a new test project, using purely the default code for an ASP.NET Core 8 MVC web app. It runs locally, but when Azure tries to build it, it seems to be failing too with the following error:
C:\Program Files (x86)\MSBuild-16.4\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1175,5): error MSB3644: The reference assemblies for .NETFramework,Version=v8.0 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 [C:\home\site\repository\TestApp\TestApp\TestApp.csproj]
My other alternative is using a pipeline, but this method is a lot simpler and doesn't require me to wait several days to request a grant to run it.
It seems like an issue with Azure but I could be wrong.
This can be fixed by downgrading to .Net 7. It's not an ideal solution, but there are no project changes, so if anybody else has this issue, that's the best solution until it gets fixed.