I added a new XML file to my solution, but when I press F5 to check it, I can not find the .xml file in the Debug folder

What could be the problem?

+3
source share
1 answer

Click on the file and open its properties ( F4), then change it Build Actionto "Content". This will turn it on every time you deploy the Content files. In this case, you can also consider including an option Copy to Output Directory(see below), which will copy the selected files to the output folder. When copying, the directory structure is also preserved (if applicable).

alt text

+2
source

Source: https://habr.com/ru/post/1740718/


All Articles