NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 10 11 12 13 14 … 93 Next »
Dll assembly referencing

 
  • 0 Vote(s) - 0 Average
Dll assembly referencing
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#1
2012-03-05, 12:14 AM
I want to use a newer version of the taglib-sharp.dll that sub distributes with NPVR for use . I know that I get version errors in the code if the same version dll that is referenced in my C# project. Is the dll assembly lookup smart enough to match on the dll version if two of the same named dll's are found? Specifically could my plugin use a dll in Common and NextPVR continue to use the old one in ProgramFiles?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2012-03-05, 12:55 AM
Sorry, I dont know the answer to this.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#3
2012-03-05, 01:13 AM
I can update the version of taglib-sharp.dll in the next release if it'll help?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#4
2012-03-05, 01:28 AM
That would be great. MB4 has primarily been using another library that is not current, and taglib-sharp is the way to go. I haven't had major problems with the 2008-Jan-10 version you have but the change log is very large, and because MB4 scans potentially 10's of thousands of files I like to be current.

The tarballs are here http://download.banshee.fm/taglib-sharp/...indows.zip for th 2011-Apr-13 and the source is here https://github.com/mono/taglib-sharp for the GNU reference.

Martin
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#5
2012-03-05, 02:04 AM
It has been a while since I played with this stuff but looking at some of my code and just off the top of my head...

Assemblies referenced in a build are version specific so even if one is found matching the filename, .NET will complain if it's not the right version. As far as I know there's no reason why you can't have a particular version elsewhere and allow npvr to use what ever it's built to use.

You can put your own assembly resolution handler into a plugin which allows you to check known folders (such as Common) and then return that assembly.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,768
Threads: 954
Joined: May 2006
#6
2012-03-05, 04:07 AM
Ok thanks, I'll try in common for testing for now and see what happens. I am pretty sure mismatched dll versions will load in .NET too so there is more to this then I want to investigate thoroughly., but it gives me things to surf while I watch TV.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  pvrx2 / plugin assembly resolution bgowland 6 2,313 2009-02-05, 11:14 PM
Last Post: bgowland
  Missing assembly problem... bgowland 16 4,541 2008-01-10, 06:43 PM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode