fbpx
Welcome, Guest
Username: Password: Remember me
Share your code snippets, screen shots etc. here
  • Page:
  • 1

TOPIC: VO migration using XIDE

VO migration using XIDE 11 months 3 weeks ago #1

  • wriedmann
  • wriedmann's Avatar Topic Author
  • Offline
  • Posts: 1404
  • Karma: 6
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
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

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

VO migration using XIDE 11 months 3 weeks ago #2

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.

VO migration using XIDE 11 months 3 weeks ago #3

  • wriedmann
  • wriedmann's Avatar Topic Author
  • Offline
  • Posts: 1404
  • Karma: 6
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
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it
Attachments:

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

  • Page:
  • 1