Monday, February 5, 2018

JetBrains Rider: The specified task executable location "C:\Program Files\dotnet\sdk\2.1.4\Roslyn\RunCsc.cmd" is invalid.

Last week during a workshop, I got into trouble when trying to use Rider to build my .NET application. The compiler failed with the following error message:

Microsoft.CSharp.Core.targets(84, 5): [MSB6004] The specified Task executable location "C:\Program Files\dotnet\sdk\2.1.2\Roslyn\RunCsc.cmd" is invalid.

Compiling in Visual Studio didn’t give any problems.

Another participant in the workshop noticed I was struggling and told me it was a bug in Rider that was fixed in release v2017.3. (Available here: https://www.jetbrains.com/rider/download/)

1 comment:

Nishanth Kannan said...

Thank you for sharing such a nice and interesting blog..
SAP SD Training in Chennai