MsBuild Fails to Copy Dynamic Folders from Plugin Applications

Deepak Vasudevan 96 Reputation points
2021-04-03T02:55:11.35+00:00

I have the following Project Structure. LavanyaDeepak.sln opens all 18 projects. Now when I do a build all, what happens is the MVC folders in (10,13 and 16) are automatically copied into 17 /Areas folders. The bin contents of all 17 projects are also automatically copied into 17's bin folder. So in debugger mode we can seamlessly debug 17.

However when I tried to publish of 17, the folders that are copied from 10,13 and 16 are missing from the deployed location. My understanding is that since these folders are copied at runtime, they have no reference in 17's project file and hence msbuild does not recognize them.

Is there a way to ask MsBuild to copy these additional files into Publish location?

84149-image-2021-04-03-082914.png

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,773 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-04-05T06:30:10.48+00:00

    Hi lavanyadeepak,

    You can follow this document: Include files, to publish these folders.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**

    0 comments No comments