VS2017 + Project .net核心XML文档文件 [英] VS2017 + Project .net Core XML documentation file

查看:95
本文介绍了VS2017 + Project .net核心XML文档文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的支持,



当我们使用构建选项"XML文档文件"在.net核心API中创建项目时;检查(例如swagger),我们发布到Azure App或本地发布,不复制xml文件。 xml位于bin文件夹中,但在wwwroot文件夹中不显示


我在visual studio 2015中尝试了相同的选项 - >它正在运行。 


然后使用VS2017,我们必须手动将xml复制到wwwroot文件夹。



<你有什么想法来解决这个问题吗?



提前致谢



Xavier

解决方案

你好Xavier,


欢迎来到MSDN论坛。


如果您希望Visual Studio 2017中的wwwroot文件夹中存在xml文件,则可以在选中以下选项后更改XML文档文件的路径:



构建或发布后, xml文件位于wwwroot文件夹中。


Dear Support,

when we create a project in .net core API with the buil option "XML documentation file" checked (for swagger for example), and we publish to Azure App or in a local publishment, the xml file isn't copied. The xml is in the bin folder but not present in the wwwroot folder.

I tried the same option in visual studio 2015 --> It's working. 

Then with VS2017 we must copy the xml manually to the wwwroot folder.

Do you have any ideas to resolve the issue?

Thanks in advance

Xavier

解决方案

Hi Xavier,

Welcome to MSDN forum.

If you want the xml file present in the wwwroot folder in Visual Studio 2017, you can change the path of the XML documentation file after check the option:

After build or publish, the xml file is in the wwwroot folder.


这篇关于VS2017 + Project .net核心XML文档文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆