I recently ran into an issue debugging an ASP.NET 4.8 application in Visual Studio Community Edition. On startup, an error page pops up with message “Could not Find a part of the path bin\roslyn\csc.exe.
Running this command fixed it for me:
Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r
Answer is explained here in detail: