Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

VBNC90019 when compiling lambda expressions using vb.net #38

Open
rolfbjarne opened this issue May 22, 2018 · 0 comments
Open

VBNC90019 when compiling lambda expressions using vb.net #38

rolfbjarne opened this issue May 22, 2018 · 0 comments

Comments

@rolfbjarne
Copy link
Member

rolfbjarne commented May 22, 2018

Submitted by a community member on 2015-09-29 10:26 UTC

I'm using monodevelop 5.9.6 under Ubuntu 14.04. My target framework is .net 4/mono

Compiling a project that was started in VS2012, with working lambda expressions already in place.

even the simplest function will stop the compile.

Example:

Return String.Join("", Characters.Select(Function(c) c.Value))

crashed near this location in the source----------^

This example could easily be rebuilt using older methods like looping through the collection, but why? How in the hell would I do sorting of a list of custom classes? At some point the older methods become just too complex to write, without the being able to use Function(x)

Thanks -fhbiii


Xamarin Bugzilla comment 1 by Rolf Bjarne Kvinge [MSFT] on 2015-09-29 10:39 UTC

The VB compiler in Mono only supports VB8 (that's the version that came with VS 2005), which is why lambdas don't compile.

There is currently plans to update the VB compiler in the future; the best option for you is probably to compile on Windows and then copy any assemblies to where you need them.


Xamarin Bugzilla comment 2 by a community member on 2015-09-29 10:47 UTC

So linq, and Lambda are only supported in the c# compiler?


Xamarin Bugzilla comment 3 by Rolf Bjarne Kvinge [MSFT] on 2015-09-29 10:48 UTC

Correct.


Xamarin Bugzilla comment 4 by a community member on 2015-09-29 10:50 UTC

Ok, not the answer I was hoping for, but I guess I can stop beating my head against the screen.

Thanks.


Reference: https://bugzilla.xamarin.com/show_bug.cgi?id=34392

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant