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

标签 azure asp.net-web-api visual-studio-2017 roslyn

我已经浏览网页几个小时了,正在寻找问题的答案。我正在尝试使用 VS2017 在 Azure Web 应用服务上部署 Web API。在本地运行时,一切都会构建并正常工作,但一旦部署在 Azure 上(通过 VS2017),我会收到此错误:

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

我的项目是 ASP.NET Web 应用程序(使用 Azure Web API 模板).NET Framework 4.6.1。我使用 Microsoft.CodeDom.Providers.DotNetCompilerPlatform Version=1.0.6.0

我还确保 csc.exe 位于:

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

最佳答案

刚刚遇到了同样的问题,似乎是 known issueMicrosoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.61.0.7

降级到1.0.5可以解决问题。

关于Azure Web 部署 "Could not find a part of the path ' D :\home\site\wwwroot\bin\roslyn\csc. exe'。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45600943/

相关文章:

azure - 微软私有(private)云和Azure有什么关系?

c# - 从 ajax 调用 WebApi 时如何调试 500 内部服务器错误?

asp.net-web-api - 带有 swashbuckle api 文档的 http 基本身份验证

列表中的 Azure 搜索评分配置文件

azure - 使用发布管道将.NET Core 3.0 API部署到Azure Web App

django - 复制失败: stat/var/lib/docker/tmp/docker-builder<num>/server/requirements. txt:没有这样的文件或目录

angularjs - AngularJS SPA 中推荐的身份验证 UX,带有自己的和外部(Google、FB ...)配置文件

asp.net-core - VS2017 中的.NET Core 1.1 : DbContextOptionsBuilder does not contain a definition for 'UseSqlServer'

c - 如何在不打印 (“pause” 的情况下执行系统 ​​ "Press enter to continue..."?

c++ - Visual C++ - 从链接器>输入>附加依赖项中排除文件