Hi @t-nishino ,
Welcome to Microsoft Q&A!
Please right-click on your project node in the solution explorer > Properties > Build Events > add a Post-build event command line:
del "$(TargetDir)YourAssembly.xml"
Note: please replace YourAssembly.xml with the name of the file you want to exclude.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.