Implementing ICommand in OpenWrap

17 views
Skip to first unread message

Ruben Vandeginste

unread,
Jun 17, 2012, 11:51:49 AM6/17/12
to openevery...@googlegroups.com
Hi,

I checked how hard it would be to implement extra commands that can be
called from the openwrap-shell.
It seems one only needs to implement an "ICommand" and add the
"Command" attribute on the class.
But this doesn't seem to work.... what do I miss? How do I get the new
commands registered?

Ruben

Sebastien Lambla

unread,
Jun 17, 2012, 8:18:03 PM6/17/12
to <openeverything-dev@googlegroups.com>
Put them in a package in /commands and they'll be avail.

You can auto,stoically change the export name for a project by having <OpenWrap-ExportName>Commands</... In the msbuild file.

--
Seb

Ruben Vandeginste

unread,
Jun 18, 2012, 4:32:05 AM6/18/12
to openevery...@googlegroups.com
Ah right... the commands folder. Now I have something extra to
complicate things... I will be using SharpSvn which requires x64 and
x86 specific dlls... is it possible to have a x64 and x86 specific
version of the commands? Or how would I go about that?

Ruben

Sebastien Lambla

unread,
Jun 18, 2012, 5:33:47 AM6/18/12
to <openeverything-dev@googlegroups.com>, openevery...@googlegroups.com
Same as with assemblies. Commands-x86 and commands-x64. Command resolution is the same as assemblies.

https://github.com/openrasta/openwrap/wiki/Using-.net-assemblies


--
Seb

Ruben Vandeginste

unread,
Jun 18, 2012, 5:44:09 AM6/18/12
to openevery...@googlegroups.com
Nice! I played with x86 and x64 specific assemblies, but how do I make
sure that they end up in the correct bin folder?
Just using the <OpenWrap-ExportName> specific for each build
configuration, I suppose?
In any case, is something to try tonight. :)

Ruben

Sebastien Lambla

unread,
Jun 18, 2012, 9:15:45 AM6/18/12
to <openeverything-dev@googlegroups.com>
Nope, just use the export name, the profile should detected automatically at compile time.

You can also do a cross build from the command line, aka build:msbuild;platform=x86;platform=x64, that'll do the build twice, once per target.

--
Seb
Reply all
Reply to author
Forward
0 new messages