c# - Copy XML into OutputDirectory of Other Project -
i run code in 1 c# project. file in root of project. ant has set copy output directory copy always.
xdocument fileconfigxml = xdocument.load("fileconfig");
that project being invoked other project.
i get:
system.io.filenotfoundexception unhandled hresult=-2147024894 message=could not find file 'c:\users\user\solutionname\otherpriect\bin\debug\fileconfig.xml'.
can copy xml file caller project or read form domestic project?
the xml-file must in project executed program. otherwise copied output-folder of referenced project. reference project means, use .dlls not other files.
Comments
Post a Comment