question

lavanyadeepak avatar image
0 Votes"
lavanyadeepak asked DylanZhu-MSFT answered

MsBuild Fails to Copy Dynamic Folders from Plugin Applications

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


vs-msbuild
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.