简体   繁体   English

找不到Windows Azure XML注释文件

[英]Windows Azure xml comments file not found

I've recently published my web application to a windows API app service plan on Azure, and since have been having multiple issues with the XML docs I am using for swagger. 我最近将我的Web应用程序发布到Azure上的Windows API应用程序服务计划中,并且由于使用我的招摇过的XML文档遇到了多个问题。

I'm getting an error 500: 我收到错误500:

DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\bin\Release\netcoreapp1.1\Zwekness.Api.xml'

At first the file wasn't being added when publishing, having done that manually I can now 100% confirm the file is on the server as seen here , yet I am getting the exact same error. 最初,发布时未添加文件,手动完成后,我现在可以100%确认文件在服务器上( 如此处所示) ,但我遇到了完全相同的错误。 I'm out of ideas what could be causing this behaviour ... 我不知道是什么原因导致这种行为...

  1. Be sure that XML documentation file in Project Properties | 确保“项目属性”中的XML文档文件| Build | 建立 Output is set for debug and release configuration. 设置输出用于调试和发布配置。
  2. Be sure that you copied the xml file in the correct path. 确保您在正确的路径中复制了xml文件。 If you just specify a file name in step one then you need to have the xml file in your wwwroot folder. 如果仅在第一步中指定文件名,则需要将XML文件放在wwwroot文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM