Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: tchlee
New Today New Today: 16
New Yesterday New Yesterday: 26
User Count Overall: 20579

People Online People Online:
Visitors Visitors: 17
Members Members: 1
Total Total: 18

Online Now Online Now:
01: larrywiding

ClearCanvas Community Forums

Begginer: question about <PluginFiles>
Last Post 2009-04-19 01:56 PM by echo. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
echo
Basic Member
Basic Member
Posts:18

--
2009-04-19 10:12 AM  

Hi,

i'am stuck on point 5 CC Developer's Guide trying create a plugin. This point says:

Add a new "PluginFiles" line to the \Trunk\ImageViewer\ImageViewer_dist.proj file.  This is an MSBuild file that gets executed as a post-build step and ensures that all necessary binaries, including your plugin, get copied to the right place for execution (i.e., \Trunk\Desktop\Executable\Debug).

How should PluginFiles tag l ook like if i've created empty plugin using template?

sberkowi
Veteran Member
Veteran Member
Posts:60
Avatar

--
2009-04-19 11:05 AM  
Hi Echo,

Step 5 only applies if you are rebuilding the entire viewer source. All it does, is copies your compiled project .dll into the 'plugins' directory for the viewer.
The line looks something like this, where you would change the path to the new library.


This is only meant to make life easier for you if you are building the viewer with a lot of plugins. If you are designing a single plugin and NOT rebuilding the viewer each time, you can either manually copy your project .dll, or, as I like to do, add a post-build step in visual studio (grabbed this tip from someone else on the forum).

I usually test my plugins against a pre-built viewer on my machine, installed in C:\Program Files\ClearCanvas (the default for the installer).
I right click properties on my plugin's properties in VS and add the following post-build event:

copy "$(TargetDir)$(TargetFileName)" "C:\Program Files\ClearCanvas\ClearCanvas Workstation\plugins"

After, I build my plugin, it is automatically copied and it runs when I run the workstation.
A few caveats with this approach:
1) Make sure the viewer isn't running when you build
2) You need to build in release mode
3) For some plugins you may need to disable the ShredHostService before copying. Not sure if this is a Vista permissions issue.

Good luck,
Seth


echo
Basic Member
Basic Member
Posts:18

--
2009-04-19 01:56 PM  

Thank you Seth for explanation and tip!

It is very helpful.

You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.