2

I have an ASP.NET project which generates an XML documentation file. I'm using Swashbuckle and would like it to be able to reference the XML comments file while debugging.

However, when I run the project in debug mode, the only files that get copied to the temporary folder are the DLL, PDB, and __AssemblyInfo__.ini.

Is there any way to cause the XML documents to be copied to the temporary folder, or any way to reference files contained in the project's BIN folder that I can access in a uniform way at both debug and publish time?

1 Answer 1

1

You can copy the xml documents to the debug folder, by changing the output path of the entire project.

You have to:

  1. Right click on your project in solution explorer and click properties
  2. Go to Build
  3. Change to output path for this project and select the output folder of your main project

Change the xml file output path:

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.