.NET

.NET

Reply
Valued Contributor
tonofsteel
Posts: 93
Registered: ‎12-04-2009
Message 41 of 41 (119 Views)

Re: Using AutoLoader with dependencies

01-29-2013 07:11 PM in reply to: tonofsteel

I am not building and supplying the path to LoadFrom because the code that calls LoadFrom is in a third party library.  Luckily in this case I have the source code that I can modify, so it is not a huge deal now that I understand what is going on.

 

This is why it threw me for such a loop, I did not even know about or ever used LoadFrom.  If I was going to build something extensible that dynamically loaded assemblies I would try use MEF which may or may not have avoided all this.

 

My main concern is that everytime I update that library this same issue is going to come up if I can't convince them to change their code base.  If I set the CurrentDirectory then this should allow me to upgrade the library as it is released without having to worry about changing this code every time.

 

The library is based around Entity Framework using a generic repository.  The mapping files are for linking POCO objects to the SQL server data store.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.