.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.
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
Post a Comment