fbpx
× Share your code snippets, screen shots etc. here

VO migration using XIDE

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
9 months 4 weeks ago #1 by Wolfgang Riedmann
VO migration using XIDE was created by Wolfgang Riedmann
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( "Software\XSharpBV\XSharp" )
cXPorterPath := Path.Combine( oRegKey:GetValue( "XSharpPath" ):ToString(), "VOXPorter\VOXPorter.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

Please Log in or Create an account to join the conversation.

More
9 months 4 weeks ago #2 by Chris Pyrgas
Replied by Chris Pyrgas on topic VO migration using XIDE
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

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
9 months 4 weeks ago #3 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic VO migration using XIDE
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:

Please Log in or Create an account to join the conversation.