.NET c#: Why does Visual studio expect me to put my files in c:\...\myConsoleApplication\bin\Debug -


i'm new .net programming , following exception when trying load xml file that's located in project's root. can please explain me why program looking file in bin folder? here's exception:

an unhandled exception of type 'system.io.filenotfoundexception' occurred in mscorlib.dll additional information: le file'c:\users\u957974\documents\visual studio 2015\projects\xmlinqconsoleapplication\xmlinqconsoleapplication\bin\debug\contacts.xml' est not found.

here screenshot of project

visual studio doesn't know application needs file run. have tell it.

to this, right-click file in solution explorer. choose "properties".

under properties, find "copy output directory", , select "copy if newer".


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -