NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 42 43 44 45 46 … 93 Next »
Reference hell

 
  • 0 Vote(s) - 0 Average
Reference hell
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2007-07-14, 02:27 PM
For new version of my Cinema Listings plug-in I've moved the update.exe into gbpvr\Plugins\InternationalCinemaListings as sub wants.

The exe uses 4 dlls:
  • GbpvrUiElements.dll
  • CommonGBPVRUtilities.dll
  • GBPVRPublic.dll
  • InternationalCinemaListingsPlugIn2.dll
The last dll is loaded ok (as its in the same directory) but the others are 2 folders up, in devnz/gbpvr/ and for some reason the .NET linker can't find them.

Anyone know how to make this work?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2007-07-14, 07:47 PM
Did you try adding a reference path? Open the project (not solution) properties and click on "Reference Paths". Add "..\..\" and it should work. You can also use a hardcoded path like "C:\devnz\gbpvr" but using the relative should ensure that it will work no matter where GB-PVR is installed.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2007-07-14, 09:17 PM
Hmm, I tried adding ..\..\ but VS 2005 changed it to D:\My Documents\Visual Studio 2005\Projects\InternationalCinemaListingsUpdater\..\..\ (the projects path).

Something I did wrong?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#4
2007-07-14, 09:24 PM
Out of desperation I removed all the references and then re-added them and now it compiles and runs fine.

edit: actually it still fails to run - adding the refs made it copy the dlls used to the plugin folder - it still can't find the files :mad:
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#5
2007-07-14, 09:27 PM
McBainUK Wrote:Hmm, I tried adding ..\..\ but VS 2005 changed it to D:\My Documents\Visual Studio 2005\Projects\InternationalCinemaListingsUpdater\..\..\ (the projects path).

Something I did wrong?
Doh! I forgot that you would have to change the working directory when using virtual paths.

McBainUK Wrote:Out of desperation I removed all the references and then re-added them and now it compiles and runs fine - only 3 hours wasted ... lol
Hmm.. Must have been set to "always copy" the references the first time. Glad you got it sorted.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#6
2007-07-14, 09:29 PM
Have you read the edit? Do I need to edit my working dir? How?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#7
2007-07-14, 09:50 PM
McBainUK Wrote:Have you read the edit? Do I need to edit my working dir? How?
I didn't see the edit. To change the working directory, go to the project properties and click "Debug". There is a "Working Directory" option. Unfortunately, I was wrong about the relative paths in the Reference paths. It bases it from the project directory not the build directory, so you would have to copy the project to the working folder and use it from there as well. I'll play around tonight and see if there is a better way.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#8
2007-07-14, 09:59 PM
whurlston Wrote:I'll play around tonight and see if there is a better way.
Its late so I'm off to bed. Will check the forums in the morning. Really do appreciate your help, this problem is the only thing holding back a v1.0.x release of the Cinema Listings plug-in.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#9
2007-07-15, 01:15 AM
My immediate thought was the GAC but it's not something I've played with myself.

Is there anything in here that helps?...

http://support.microsoft.com/kb/837908

Cheers,
Brian
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#10
2007-07-15, 07:51 AM
Thanks for the link Brian, just what I needed.

I've changed the updater.exe to a windows form based app. This means I can use the AssemblyResolve event talked about in method 3 to dynamically load the dlls from the gbpvr installation directory (looked up via the registry).

Thanks for all replies.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Indirect Reference to GBPVRPublic Ommina 3 1,639 2008-03-03, 11:32 PM
Last Post: Ommina
  Problem Adding Reference ohowson 1 1,360 2006-11-16, 02:14 PM
Last Post: ohowson
  Indirect reference problem with GBPVRPublic hoefkko 3 1,634 2006-09-22, 09:07 PM
Last Post: hoefkko
  dll hell BobAtTorrey 3 2,221 2006-08-13, 02:34 AM
Last Post: sub
  PluginHelper reference aurora 0 1,112 2005-03-16, 07:39 PM
Last Post: aurora
  Skinning Reference Ericwiz 9 3,068 2005-01-19, 02:52 AM
Last Post: Ericwiz

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

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

Linear Mode
Threaded Mode