I've tried to copy the mainlist xml file to bin\Debug folder. But It throws exception. I've passed argument in console application like "C:\Users\gio.frog\Desktop\mainlist.xml"
and used file.copy method like follows:
File.Copy(args[0], AppDomain.CurrentDomain.BaseDirectory + "sublist.xml",true);
I've seen some same exception example in stackoverflow but can't get the correct reason. How to copy to bin/debug folder.?