Now that the nex xPorter/VO is available, here is the code I use in my XIDE plugin to launch the VO migration application per application (and I'm able to repeat that very often):
method ExecuteVOXPorter( o as object, e as EventArgs ) as void
local oRegKey as Microsoft.Win32.RegistryKey
local cXPorterPath as string
local cDestPath as string
local oCommand as Process
local oInfo as ProcessStartInfo
oRegKey := Microsoft.Win32.Registry.LocalMachine:OpenSubKey( "SoftwareXSharpBVXSharp" )
cXPorterPath := Path.Combine( oRegKey:GetValue( "XSharpPath" ):ToString(), "VOXPorterVOXPorter.exe" )
oRegKey:Close()
cDestPath := self:GetProjectAppFolder()
oCommand := Process{}
oInfo := oCommand:StartInfo
oInfo:FileName := cXPorterPath
oInfo:Arguments := String.Format( e"/d:"{0}" /nowarning", cDestPath )
oInfo:UseShellExecute := false
oInfo:RedirectStandardOutput := false
oInfo:RedirectStandardInput := false
oCommand:Start()
return
This way the xPorter writes the prg files to the XIDE applications folder, and if I port an application the first time, I can add it using "Add application", otherwise I can only recompile because the prg files are already replaced by the new ones.
Wolfgang
P.S. I can also share my plugin if required
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Yes, I think it's a good idea to supply your plugin also in binary form, because very few people would otherwise go through compiling the code to generate the plugin etc. Just a dll with your functionality that can be simply put in the plugins folder would be ideal. And if you could also supply the full code as a .viaef file, it would be even greater
Btw, as you know I'm already using you plugin installed in my main XIDE instance for my everyday programming and some things like "Open Bin folder" I am using them extremely often! I am glad you guys implement things like that, so I don't have to do it myself
I have attached my plugin here - in the zip file are contained both the binaries and the source. To make it work you need to put the DLL (and maybe also the .pdb) in the plugins folder in the XIDE directory.