I'm using Visual Studio 2015. I have a XML file in my solution Xml/file.xml
I wrote:
XElement root = XElement.Load(@"Xml\file.xml");
My file.xml
properties are:
Build Action = Content
Copy to Output Directory = Copy Always
In debug mode it works, but when I pubblish the solution, it searches the file in:
c:\windows\system32\inetsrv\Xml\file.xml
What is the solution?
Thanks