Error "Could not find a part of the path ... bin\\roslyn\\csc.exe" in ASP.NET project
Hello everyone! I'm a beginner in C# and ASP.NET, working in Visual Studio 2019. When launching my web application (ASP.NET MVC project), I suddenly get an error:
```
Could not find a part of the path 'D:\Projects\MyApp\MyApp\bin\roslyn\csc.exe'
```
The project used to work fine, but after adding the NuGet package Microsoft.CodeDom.Providers.DotNetCompilerPlatform and updating the solution, the error appears constantly. Here's my code (simple controller):
```csharp
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
```
I've already tried:
1. Clean and rebuild the solution (Build -> Clean Solution, then Rebuild).
2. Delete the bin and obj folders manually.
3. Reinstall Visual Studio (didn't help).
The error occurs during compil
No answers yet.
Log in to leave an answer