# Converting VB.Net to Mercury in Command Line

**URL:** https://talk.remobjects.com/t/converting-vb-net-to-mercury-in-command-line/24349
**Category:** Mercury
**Created:** [March 8, 2021, 7:50am UTC](https://talk.remobjects.com/t/converting-vb-net-to-mercury-in-command-line/24349 "2021-03-08T07:50:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Harald\_Bacik](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/h/6bbea6/32.png) [@Harald\_Bacik](https://talk.remobjects.com/u/Harald_Bacik)
#### Post date: [March 8, 2021, 7:50am UTC](https://talk.remobjects.com/t/converting-vb-net-to-mercury-in-command-line/24349/1 "2021-03-08T07:50:13Z")

</div>

Hey

Based on the forum post here: [https://talk.remobjects.com/t/water-create-project-from-command-line/24067](https://talk.remobjects.com/t/water-create-project-from-command-line/24067)

and the video: " Importing your existing Visual [Basic.NET](http://Basic.NET) projects to use them in Mercury."

I wanted to ask, if you can enable this feature within the “RemObjects.Elements.ProjectSystem.dll” as well, so it would be possible to transform an [VB.Net](http://VB.Net) project to Mercury at runtime.

THX a lot in advance

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [March 8, 2021, 12:30pm UTC](https://talk.remobjects.com/t/converting-vb-net-to-mercury-in-command-line/24349/2 "2021-03-08T12:30:06Z")

</div>

It’s already available via RemObjects.EBuild.Elements.dll:

```auto
var p := new RemObjects.EBuild.Elements.EBuildElementsProject withFile("path/to.vbproj" Format(".vbproj");
p.SaveToFile("path/to.elements"));

```

(the Format parameter ia actually ignored, it goes by the file extension. It remains to work around a limitation with contractor overloading in .NET).

That said, you can also convert via ebuild.exe

`ebuild --convert /path/to.vbproj /path/to.elements`

Which does the same, but is more future proof in case the above API, which is not officially public, should ever change.

—marc

---

<div class="post-metadata">

### Author: ![Harald\_Bacik](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/h/6bbea6/32.png) [@Harald\_Bacik](https://talk.remobjects.com/u/Harald_Bacik)
#### Post date: [March 8, 2021, 1:17pm UTC](https://talk.remobjects.com/t/converting-vb-net-to-mercury-in-command-line/24349/3 "2021-03-08T13:17:09Z")

</div>

Hey Marc!

THX a lot for this information!

Have a nice day - Harald

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [March 8, 2021, 1:18pm UTC](https://talk.remobjects.com/t/converting-vb-net-to-mercury-in-command-line/24349/4 "2021-03-08T13:18:19Z")

</div>

any time; you too!
