# Mercury

**URL:** https://talk.remobjects.com/c/elements/mercury/47.md

[Latest](https://talk.remobjects.com/latest.md) · [Categories](https://talk.remobjects.com/categories.md) · [Tags](https://talk.remobjects.com/tags.md)

---

## [\`DllExport("name")\` does not export symbols in Mercury Island/Windows DLLs](https://talk.remobjects.com/t/dllexport-name-does-not-export-symbols-in-mercury-island-windows-dlls/33681)

<div class="topic-metadata">

**Author:** [@syriku](https://talk.remobjects.com/u/syriku)\
**Replies:** 7\
**Last updated:** [July 29, 2026, 3:29pm UTC](https://talk.remobjects.com/t/dllexport-name-does-not-export-symbols-in-mercury-island-windows-dlls/33681 "2026-07-29T15:29:37Z")

</div>

I encountered an issue when building a native Windows DLL using Island and Mercury. The project successfully produces a DLL, but using the documented named form of DllExport does not place the method in the DLL export t…

---

## [Mercury 'Do Loop' 'Continue Do' issue](https://talk.remobjects.com/t/mercury-do-loop-continue-do-issue/33083)

<div class="topic-metadata">

**Author:** [@chikega](https://talk.remobjects.com/u/chikega)\
**Replies:** 6\
**Last updated:** [April 11, 2026, 7:35pm UTC](https://talk.remobjects.com/t/mercury-do-loop-continue-do-issue/33083 "2026-04-11T19:35:40Z")

</div>

Hi Marc, I think I may have found an issue, or at least an ambiguity, with \`Continue\` inside \`Do … Loop\` in Mercury. I tested this minimal example: Module Program Sub Main(args As String()) Do writeLn("te…

---

## ["Manage NuGet Packages" experience in VS2022 pretty limited](https://talk.remobjects.com/t/manage-nuget-packages-experience-in-vs2022-pretty-limited/26873)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 3\
**Last updated:** [November 19, 2025, 10:57am UTC](https://talk.remobjects.com/t/manage-nuget-packages-experience-in-vs2022-pretty-limited/26873 "2025-11-19T10:57:55Z")

</div>

Visual Studio 2022 RemObjects Elements 11.0.0.2749 Are there plans to improve the “Manage NuGet Packages” experience in Visual Studio? The top version is my Mercury project, and the bottom version is a C# project: …

---

## [Feature regarding structures in Mercury](https://talk.remobjects.com/t/feature-regarding-structures-in-mercury/28743)

<div class="topic-metadata">

**Author:** [@sollapse](https://talk.remobjects.com/u/sollapse)\
**Replies:** 50\
**Last updated:** [January 19, 2024, 5:22pm UTC](https://talk.remobjects.com/t/feature-regarding-structures-in-mercury/28743 "2024-01-19T17:22:24Z")

</div>

Is it possible to allow for Mercury to allow static arrays inside of structures?

---

## [VS2022, Missing RemObjects Project Templates (and Workaround!)](https://talk.remobjects.com/t/vs2022-missing-remobjects-project-templates-and-workaround/26359)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 7\
**Last updated:** [November 21, 2023, 6:38pm UTC](https://talk.remobjects.com/t/vs2022-missing-remobjects-project-templates-and-workaround/26359 "2023-11-21T18:38:38Z")

</div>

Elements Version 11.0.0.2721, VS version 17.1.1 I wanted to try out Elements with VS2022 this morning, so I installed VS2022 and uninstalled/reinstalled Elements, making sure that VS2022 was checked: However, none …

---

## [Island/Linux fails to pass structures properly in libraries](https://talk.remobjects.com/t/island-linux-fails-to-pass-structures-properly-in-libraries/28813)

<div class="topic-metadata">

**Author:** [@sollapse](https://talk.remobjects.com/u/sollapse)\
**Replies:** 17\
**Last updated:** [September 6, 2023, 2:30pm UTC](https://talk.remobjects.com/t/island-linux-fails-to-pass-structures-properly-in-libraries/28813 "2023-09-06T14:30:29Z")

</div>

This is a repost of the issue of libraries throwing a segfault regarding the GC when attempting to pass structures to functions under Linux. This specifically occurs when accessing an array in the structure, allocated ei…

---

## [FX file fails to allow custom types to be passed](https://talk.remobjects.com/t/fx-file-fails-to-allow-custom-types-to-be-passed/28814)

<div class="topic-metadata">

**Author:** [@sollapse](https://talk.remobjects.com/u/sollapse)\
**Replies:** 10\
**Last updated:** [September 4, 2023, 11:45pm UTC](https://talk.remobjects.com/t/fx-file-fails-to-allow-custom-types-to-be-passed/28814 "2023-09-04T23:45:26Z")

</div>

When attempting to link a library via a FX file, the namespaces do not match in regards to passing a custom data structure. ConsoleApplication3\_fx.zip (2.2 MB)

---

## [Function Pointers](https://talk.remobjects.com/t/function-pointers/28755)

<div class="topic-metadata">

**Author:** [@sollapse](https://talk.remobjects.com/u/sollapse)\
**Replies:** 17\
**Last updated:** [September 4, 2023, 6:50pm UTC](https://talk.remobjects.com/t/function-pointers/28755 "2023-09-04T18:50:59Z")

</div>

When compiling with the Island backend, is it possible for Mercury to cast raw function pointers to delegates and vice versa (create a pointer to a delegate)? I’m currently unable to test since I last used the trial almo…

---

## [Broken Ptr syntax](https://talk.remobjects.com/t/broken-ptr-syntax/25611)

<div class="topic-metadata">

**Author:** [@sollapse](https://talk.remobjects.com/u/sollapse)\
**Replies:** 41\
**Last updated:** [August 29, 2023, 10:00pm UTC](https://talk.remobjects.com/t/broken-ptr-syntax/25611 "2023-08-29T22:00:16Z")

</div>

Testing the functionality of pointers, the syntax given in your documentation fails to compile: Dim t As Ptr(Of String) t = AddressOf “Some Literal String” The error is that t is expecting a ^String. Also is it possi…

---

## [Multidimensional arrays not working](https://talk.remobjects.com/t/multidimensional-arrays-not-working/28761)

<div class="topic-metadata">

**Author:** [@sollapse](https://talk.remobjects.com/u/sollapse)\
**Replies:** 0\
**Last updated:** [August 21, 2023, 5:40pm UTC](https://talk.remobjects.com/t/multidimensional-arrays-not-working/28761 "2023-08-21T17:40:33Z")

</div>

Created a separate thread to report multidimension arrays in Mercury not being able to be defined. Test via Dim test(2,2) As (any type).

---

## [Array Declaration in Mercury](https://talk.remobjects.com/t/array-declaration-in-mercury/28036)

<div class="topic-metadata">

**Author:** [@geomcl1](https://talk.remobjects.com/u/geomcl1)\
**Replies:** 13\
**Last updated:** [March 21, 2023, 2:17pm UTC](https://talk.remobjects.com/t/array-declaration-in-mercury/28036 "2023-03-21T14:17:34Z")

</div>

Declaration of an array in microsoft visual basic is achieved by specifying the upperbound of the array :: dim arr(4) as Integer Console.WriteLine($“Length of the array = {arr.Length}”) The length is returned as 5. I…

---

## [Lack of activity](https://talk.remobjects.com/t/lack-of-activity/27963)

<div class="topic-metadata">

**Author:** [@cristianlt](https://talk.remobjects.com/u/cristianlt)\
**Replies:** 1\
**Last updated:** [February 26, 2023, 3:15pm UTC](https://talk.remobjects.com/t/lack-of-activity/27963 "2023-02-26T15:15:44Z")

</div>

what happened here on the forum, why is there no more activity?

---

## [Jagged array fails to compile](https://talk.remobjects.com/t/jagged-array-fails-to-compile/27083)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 3\
**Last updated:** [August 24, 2022, 3:39pm UTC](https://talk.remobjects.com/t/jagged-array-fails-to-compile/27083 "2022-08-24T15:39:56Z")

</div>

Project to reproduce: dotnetarraytest.zip (29.0 KB) Build log: buildlog.txt (24.3 KB) Print screen: The problem: somewhere the amount of expected elements is 1 to high for a jagged array - not for a normal array.

---

## [VS2022 Attributes on first property in Mercury Class has a different color than the rest](https://talk.remobjects.com/t/vs2022-attributes-on-first-property-in-mercury-class-has-a-different-color-than-the-rest/26985)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 3\
**Last updated:** [July 28, 2022, 7:16am UTC](https://talk.remobjects.com/t/vs2022-attributes-on-first-property-in-mercury-class-has-a-different-color-than-the-rest/26985 "2022-07-28T07:16:08Z")

</div>

Elements 11.0.0.2757 VS2022 I’ve noticed in Visual Studio that any attributes for the first property in a class appear as a different color than other property attributes. In this example, the first attribute appears …

---

## [Internal error compiling project](https://talk.remobjects.com/t/internal-error-compiling-project/26969)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 9\
**Last updated:** [July 21, 2022, 6:59pm UTC](https://talk.remobjects.com/t/internal-error-compiling-project/26969 "2022-07-21T18:59:32Z")

</div>

My last project doesn’t compile anymore after I made a bulk of changes in it. I retried building it after I installed the last Water and Elements from the firehose. The error: Project to reproduce: removed How to…

---

## [VS2022, View Code (F7) on Razor Page doesn't work](https://talk.remobjects.com/t/vs2022-view-code-f7-on-razor-page-doesnt-work/26887)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 4\
**Last updated:** [August 19, 2022, 7:36am UTC](https://talk.remobjects.com/t/vs2022-view-code-f7-on-razor-page-doesnt-work/26887 "2022-08-19T07:36:44Z")

</div>

VS2022, with both Mercury and Silver. If I am looking at a Razor page (.cshtml), and I right click in the editor anywhere on the page, one of the context menu options is View Code. Currently if I click on that menu …

---

## [ASP.NET Core, quickest approach for testing simple changes?](https://talk.remobjects.com/t/asp-net-core-quickest-approach-for-testing-simple-changes/26865)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 18\
**Last updated:** [June 30, 2022, 4:50pm UTC](https://talk.remobjects.com/t/asp-net-core-quickest-approach-for-testing-simple-changes/26865 "2022-06-30T16:50:39Z")

</div>

As I dig more and more into ASP.NET Core using Mercury (for now mostly with Razor pages), one thing I am frustrated by is the slower debugging cycle for ASP.NET Core. When developing WebForm apps, it seemed like the cyc…

---

## [ASP.NET Core in VS2022 does not show wwwroot folder](https://talk.remobjects.com/t/asp-net-core-in-vs2022-does-not-show-wwwroot-folder/26866)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 5\
**Last updated:** [July 13, 2022, 1:06pm UTC](https://talk.remobjects.com/t/asp-net-core-in-vs2022-does-not-show-wwwroot-folder/26866 "2022-07-13T13:06:12Z")

</div>

Something that is a bit odd to me…if I look at my ASP.NET Core Razor Mercury project in Water, it shows the wwwroot folder: But if I look at the same project in VS2022, it does not, it shows the contents of the wwwro…

---

## [VS2022 - ASP.NET Core Project - Web items only available under Oxygene](https://talk.remobjects.com/t/vs2022-asp-net-core-project-web-items-only-available-under-oxygene/26861)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 2\
**Last updated:** [September 27, 2022, 1:56pm UTC](https://talk.remobjects.com/t/vs2022-asp-net-core-project-web-items-only-available-under-oxygene/26861 "2022-09-27T13:56:30Z")

</div>

In VS2022 with an ASP.NET Core Mercury project, it is a bit confusing to find typical web item templates when adding a new item. For example: if I wanted to add a new HTML Page, JSON File, or CSS Stylesheet to my projec…

---

## [ASP.NET Core Razor Page files in VS2022 not added correctly in .elements project file](https://talk.remobjects.com/t/asp-net-core-razor-page-files-in-vs2022-not-added-correctly-in-elements-project-file/26828)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 2\
**Last updated:** [June 22, 2022, 1:34pm UTC](https://talk.remobjects.com/t/asp-net-core-razor-page-files-in-vs2022-not-added-correctly-in-elements-project-file/26828 "2022-06-22T13:34:10Z")

</div>

Elements 11.0.0.2745 Visual Studio 2022 (Version 17.1.1) There is a problem with the way Razor Page files are added to ASP.NET Core Mercury projects when using Visual Studio 2022. (I don’t know about VS2019.) If I cre…

---

## [ Mercury and the market.](https://talk.remobjects.com/t/mercury-and-the-market/26765)

<div class="topic-metadata">

**Author:** [@cristianlt](https://talk.remobjects.com/u/cristianlt)\
**Replies:** 10\
**Last updated:** [June 8, 2022, 8:40pm UTC](https://talk.remobjects.com/t/mercury-and-the-market/26765 "2022-06-08T20:40:03Z")

</div>

I would like to know how Mercury is joining the market, I am very interested in Mercury.

---

## [How to extend a class with an aspect](https://talk.remobjects.com/t/how-to-extend-a-class-with-an-aspect/26611)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 4\
**Last updated:** [May 3, 2022, 6:08am UTC](https://talk.remobjects.com/t/how-to-extend-a-class-with-an-aspect/26611 "2022-05-03T06:08:22Z")

</div>

I want to generate code like to following: The second line is the problem; how do I Extend an existing class?

---

## [Null reference error in WebAssembly with reflection](https://talk.remobjects.com/t/null-reference-error-in-webassembly-with-reflection/26613)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 6\
**Last updated:** [May 5, 2022, 1:31pm UTC](https://talk.remobjects.com/t/null-reference-error-in-webassembly-with-reflection/26613 "2022-05-05T13:31:48Z")

</div>

The project to reproduce: ErrorInReflection 1.bugreport.zip (1.6 MB) The build log: ErrorInReflection 1.bugreport.txt (21.1 KB) When you run this code, it crashes withe the following error: The code in the projec…

---

## [Visual Studio new ASP.NET Core project, why does it show a Framework selection?](https://talk.remobjects.com/t/visual-studio-new-asp-net-core-project-why-does-it-show-a-framework-selection/26432)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 4\
**Last updated:** [April 4, 2022, 7:55am UTC](https://talk.remobjects.com/t/visual-studio-new-asp-net-core-project-why-does-it-show-a-framework-selection/26432 "2022-04-04T07:55:21Z")

</div>

Elements version 11.0.0.2725 When I create a new Mercury ASP.NET Core project in Visual Studio (either 2019 or 2022), the wizard shows a Framework dropdown list That seems weird to me, because I don’t think the clas…

---

## [ASP.NET Core Mercury in Visual Studio - two minor annoyances](https://talk.remobjects.com/t/asp-net-core-mercury-in-visual-studio-two-minor-annoyances/26328)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 8\
**Last updated:** [December 22, 2025, 12:23pm UTC](https://talk.remobjects.com/t/asp-net-core-mercury-in-visual-studio-two-minor-annoyances/26328 "2025-12-22T12:23:43Z")

</div>

Version 11.0.0.2721 There are two minor annoyances when using ASP.NET Core Mercury projects in Visual Studio 2019. I wonder if there is anything that can be done about them. In the Solution Explorer, the .cshtml.vb f…

---

## [VS2019, no Mercury ASP.NET Core or Web Item Templates?](https://talk.remobjects.com/t/vs2019-no-mercury-asp-net-core-or-web-item-templates/26285)

<div class="topic-metadata">

**Author:** [@avonelle](https://talk.remobjects.com/u/avonelle)\
**Replies:** 4\
**Last updated:** [March 9, 2022, 12:18pm UTC](https://talk.remobjects.com/t/vs2019-no-mercury-asp-net-core-or-web-item-templates/26285 "2022-03-09T12:18:45Z")

</div>

Version 11.0.0.2719 In VS2019, there do not appear to be any Mercury ASP.NET Core or web page item templates. Here’s the expanded Mercury list compared to the Oxygene list: They are available in Water, so there is a…

---

## [Feature request: Class contracts for Mercury](https://talk.remobjects.com/t/feature-request-class-contracts-for-mercury/26234)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 16\
**Last updated:** [March 4, 2022, 3:02pm UTC](https://talk.remobjects.com/t/feature-request-class-contracts-for-mercury/26234 "2022-03-04T15:02:29Z")

</div>

I’d like to request the Class contracts (already available in Oxygene, C#, Swift and Java) to be implemented in Mercury. Link for the current implementation in the other languages for the ones that do not know what clas…

---

## [Microsoft.VisualBasic is not automatic imported](https://talk.remobjects.com/t/microsoft-visualbasic-is-not-automatic-imported/26139)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 5\
**Last updated:** [February 4, 2022, 3:33pm UTC](https://talk.remobjects.com/t/microsoft-visualbasic-is-not-automatic-imported/26139 "2022-02-04T15:33:55Z")

</div>

To reproduce, create a new project from the Mercury Console - .Net Framework template Create this sub main: Sub Main() WriteLn("Test" & vbTab & "the vbTab character") End Sub Compile the code, and you get the erro…

---

## [Interpolated string is not seen as a string by the editor](https://talk.remobjects.com/t/interpolated-string-is-not-seen-as-a-string-by-the-editor/26140)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 11:15am UTC](https://talk.remobjects.com/t/interpolated-string-is-not-seen-as-a-string-by-the-editor/26140 "2022-02-14T11:15:00Z")

</div>

When you type the line: writeLn($“The path {LocalPath} does not exist”) The editor doesn’t see that you are in a string and starts to give CC within the string. Example:

---

## [Nuget reference is not copied local](https://talk.remobjects.com/t/nuget-reference-is-not-copied-local/26133)

<div class="topic-metadata">

**Author:** [@Theo69](https://talk.remobjects.com/u/Theo69)\
**Replies:** 2\
**Last updated:** [February 4, 2022, 10:11am UTC](https://talk.remobjects.com/t/nuget-reference-is-not-copied-local/26133 "2022-02-04T10:11:58Z")

</div>

Open a .Net Framework console application. Add a nuget reference to SSH.net In the solution explorer you see this reference: Click on the ssh.net:\* reference and try to set Copy Local to True You get: As a ref…

[Next page](https://talk.remobjects.com/c/elements/mercury/47.md?page=1)
