One way to avoid copying PDB and XML files of a referenced assembly to the output is to set the "Copy Local" property of the reference to "False".
To do this in Visual Studio, right-click on the referenced assembly in the Solution Explorer and select "Properties". In the Properties window, change the "Copy Local" property to "False". This will prevent the PDB and XML files from being copied to the output directory when the project is built.
Alternatively, you can use a post-build event to delete the PDB and XML files from the output directory after the build is complete. To do this, go to the project properties and select the "Build Events" tab. In the "Post-build event command line" field, enter a command to delete the PDB and XML files. For example:
del $(TargetDir).pdb del $(TargetDir).xml
This will delete all PDB and XML files in the output directory after the build is complete.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-10 08:21:53 +0000
Seen: 15 times
Last updated: May 10 '23
The text summarization output is shortened.
What is the method for bypassing the entire current loop if an error occurs?
Is it possible to ascertain the amount of output categories in a HuggingFace segmentation model?
How does Anova in scipy produce nan as output?
Is it possible for someone to make FieldOutputRequestState functional in Abaqus Scripting?
What is the method for producing an APA-style table output in R?
Why does pdf("my_plot.pdf") output an empty plot?
What is the method for eliminating additional space in Lambda's JSON output?