Notice in that last screenshot that it says "Not Available" and "Available"? These are platforms. Normally you would expect to see something like 'NET Framework 4.7.2and
NET 8`.
Something seems wrong with your project file if I were to wager a guess. Did this problem just start or has it been this way a while? If it just started then can you revert your changes and try again? If you have been hand editing your project file then this could easily break things as well.
In general the App_Code
folder is a well known folder for ASP.NET web apps but I notice you're using MVC. MVC doesn't care about an App_Code
folder and doesn't treat it specially. You don't need it and should probably move your files into a better structure anyway.
I would start by just putting your files into better named folders and removing the App_Code folder. If you had modified the project file to do something special with this folder then get rid of that too. If that doesn't work then we need to look closer at your project file.