简体   繁体   中英

How to publish a project that contains XML documentation Files from multiple Projects?

I was working on a Project that consists of an ASP.NET Web service API (Framework 4.7) and a Library project. In order to generate the Help pages for my Web service, I applied the method in the following post's top rated answer: https://stackoverflow.com/a/21895258/14273666 It worked great during development.

When I published my project though, after creating my IIS site and application pool, My App_Data folder was not published along with the web service project. This can easily be fixed by moving the adding the App_Data folder to my project's IIS site folder, but requires manual action to be taken. How could I configure my project for this folder to be published with such a folder?

1- Create a publish profile

2- Edit the profile xml not to exclude App_Data from publish like this:

<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>
    ....
    <ExcludeApp_Data>False</ExcludeApp_Data>
    ...
  </PropertyGroup>
</Project>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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