c# - Dependent project complexity -
initially developing window(form) project 1 named proj1. added project 2 named proj2 proj1. added references of proj2 in proj1. made proj2 startup project. while compiling , running, fine. built rebuilt in both release mode , debug mode. copied exe of proj1 , put @ different place. runs without showing dependency error starting point proj1 not proj2.
to resolve opened solution file of proj2 , added proj1 there , added references also. put proj2 starting file. running well. when copy exe of proj2 place, shows dependency error. when put proj1 exe @ place, runs well.
the error is:
unhandled exception: system.io.filenotfoundexception: not load file or assembly 'myexcelreader, version=1.0.0.0, culture=neutral, publickeytoken=null' or 1 of dependencies. system cannot find file specified. @ codegen.program.createnominals(xmldocument xmldoc, xmlnode rootnode) @ codegen.program.main(string[] args)
adding references projects alone not cause exception - occurs when code trying load type assembly.
so apparently proj2
trying load type proj1
, , since didn't copy proj1
assembly directory in running it, cannot load type.
perhaps share trying achieve, , why expected proj2
run without proj1
?
Comments
Post a Comment