question

davidbuckley-4911 avatar image
1 Vote"
davidbuckley-4911 asked llaxmikant commented

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

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:

dotnet-csharpdotnet-aspnet-core-mvc
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

update your nugget package or try cleaning and rebuilding solution


 Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r


1 Vote 1 ·

That path is related to the NuGet package Microsoft.CodeDom.Providers.DotNetCompilerPlatform so you'd better check if you have restored the package successfully.

0 Votes 0 ·

0 Answers