A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Hello @Deepak Vasudevan ,
Welcome to Microsoft Q&A forum.
Per this document: MSBuild well-known item metadata--%(RecursiveDir), the %(RecursiveDir) specifies the part of the path that replaces the wildcard, so if you try to change this path <AreaFiles Include=”Areas*” /> to use wildcard for example < AreaFiles Include=”**\Areas*” /> will it work?(Not sure where these Areas* files/folders are located on your side, if they are located in your solution folder, you can try **\Areas*, if they are located in your project folder, you can try **\[your project name]\Areas* )
Besides, the <DestinationRelativePath>Areas\%(RecursiveDir)</DestinationRelativePath> code line should also be modified. As %(RecursiveDir) specifies the part of the path that replaces the wildcard, %(RecursiveDir) would be Drive:\XXXX\... for example C:\MySolution so if you add Areas\ before it, it will not be identified as a correct path.
You may also need to check these documents: Update the publish profile file and MSBuild well-known item metadata.
Best Regards,
Tianyu
- 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.