VO migration using XIDE

Public forum to share code snippets, screen shorts, experiences, etc.
Post Reply
User avatar
wriedmann
Posts: 3655
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

VO migration using XIDE

Post by wriedmann »

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):

Code: Select all

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
User avatar
Chris
Posts: 4584
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

VO migration using XIDE

Post by Chris »

Hi Wolfgang,

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 :)

Chris
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
wriedmann
Posts: 3655
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

VO migration using XIDE

Post by wriedmann »

Hi Chris,

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.

I have also uploaded it to my own webpage: https://www.riedmann.it/download/XIDE_WR_Plugin.zip

and it is visible also (together with other X# source code, samples and utilities from my page: https://www.riedmann.it/verschiedenes_vulcan.php

(I know I need to rename this page <g>.

The plugin has the following functionalities:
  • Insert a textblock (from the textblock folder where you can put your own code fragments
  • Show the runtime error log
  • Open the bin folder of the current project
  • Copy the application folder name of the current project to the clipboard
  • Open a command prompt in the bin folder of the current project (with the Visual Studio variables set so you can execute the VS command line utilities)
  • Open an elevated command prompt with the Visual Studio variables set
  • Execute GUIDgen
  • Execute xPorter/VO
Of course, if someone needs other functionalities, please let me know, and I will add them if not too much work.

Wolfgang
Attachments
XIDE_WR_Plugin.zip
(25.52 KiB) Downloaded 63 times
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply