Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Web Deploy "Could not find a part of the path 'D:\home\site\wwwroot\bin\roslyn\csc.exe'."

I've been browsing the web for a couple hours now looking for an answer to my problem. I am trying to deploy a Web API on Azure Web App Service using VS2017. Everything builds and works fine when running locally but once deployed on Azure (through VS2017) I get this error:

D:\home\site\wwwroot\bin\roslyn\csc.exe

My project is an ASP.NET Web Application (Using Azure Web API template) .NET Framework 4.6.1. I use Microsoft.CodeDom.Providers.DotNetCompilerPlatform Version=1.0.6.0

I also made sure that csc.exe is located in:

Visual Studio 2017\Projects\DeviceManagementAPI\DeviceManagementAPI\bin\roslyn

like image 249
M. Martin Avatar asked Aug 09 '17 21:08

M. Martin


2 Answers

Just had the same problem and it seems it's a known issue with Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.6 and 1.0.7.

Downgrading to 1.0.5 solves the problem.

like image 161
Saeb Amini Avatar answered Nov 16 '22 00:11

Saeb Amini


Upgrading Microsoft.CodeDom.Providers.DotNetCompilerPlatform to 1.08 worked for me

like image 35
Hendrik Barnard Avatar answered Nov 16 '22 00:11

Hendrik Barnard