【问题标题】:CS0433: The type 'X' exists in both 'A' and 'B' - Clear Temporary ASP.NET Files from Azure AppService as part of Azure Devops release pipeline?CS0433:“A”和“B”中都存在“X”类型 - 作为 Azure Devops 发布管道的一部分,从 Azure AppService 清除临时 ASP.NET 文件?
【发布时间】:2018-11-28 11:09:56
【问题描述】:

当我尝试访问该网站时,我收到了标题错误。在 Azure 上的应用服务上运行的 Web 应用程序项目。通过 Azure Devops 部署。

当我在本地手动删除临时 ASP.NET 文件时,站点将重新编译,并且不再出现此问题。但是现在我正在尝试在 Azure Devops 上创建一个发布管道并遇到此错误,所以如果我实际上必须在每次部署时清除这些文件,那么它应该是我管道的一部分。这是正确的方法吗?如果可以,如何实现?

【问题讨论】:

    标签: asp.net azure azure-devops azure-web-app-service


    【解决方案1】:

    我仍然不确定如何清除临时 asp.net 文件,但我可以通过在 web.config 中添加以下行来绕过该问题:

    <compilation batch="false"...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-05
      • 1970-01-01
      • 2019-03-17
      • 1970-01-01
      • 1970-01-01
      • 2015-03-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多