Could not find a part of the path \roslyn\csc.exe

NOVATROOP77 266 Reputation points
2021-08-29T15:23:01.52+00:00

Anyone else getting the following issue on the lattest update of visual studio 2022

Could not find a part of the path 'C:\Users\David\Downloads\MvcDynamicForms-master\MvcDynamicForms.Demo\bin\roslyn\csc.exe'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\David\Downloads\MvcDynamicForms-master\MvcDynamicForms.Demo\bin\roslyn\csc.exe'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

Developer technologies ASP.NET ASP.NET Core
Developer technologies C#
{count} vote

1 answer

Sort by: Most helpful
  1. Ali Aslani 15 Reputation points
    2023-02-28T19:21:55.87+00:00

    Hi.
    You can clean project and build project to recreate 'bin' folder.

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.