Installation of Visual Basic OR Visual Studio 2022 on Linux [SOLVED]

Heyy there!

Our 11th grade college started yesterday( 3 months after result :skull: :skull: )

Now, we have Computer Science this year and one chapter in it is Visual Basic.
In the college computers, they have already installed visual basic 6.0 version but it is indeed very slow.
Hence, to practice it at home, I tried to install it on linux.

Now, after browsing the web, I came to know that VB 6.0 was released in 1998 and was the last version.
So, I looked for update MS apps/ IDEs which support VB language and found Visual Studio 2022 Community Edition.

Its free to download and it has the forms support for VB.
But, only an .exe file is available for its installation.

Similar to a common linux user, I tried to use wine for its installation. But, wine is giving me multiple errors like NET 4.6 and above required. I tried to install net 4.6 ( and even latest net 7 ig ) using winetricks. It was installed but it gave multiple warnings I suppose related to 32-bit architecture. I wasn’t able to understand them and thus continued to NET install.

After installation, when I run the executable, its giving me same error that NET 4.6 or abv is requred.

Any solutions?

Thanks and Regards,
Hrishikesh.

3 Likes

@TypeHrishi
Run net 4.6 with Wine? I seriously doubt that will happen!!!

1 Like

Why though?

Why would Linux even need visual basic or net 4.6?

1 Like

I understand. But why will it not run using wine?

Nevermind, ill use gambas3 as alternative…

Thanks

1 Like

Okay…

After doing some research and getting responses from senior members of the community like @Daniel_Phillips , ive concluded that its not possible to install VB on linux due to problem in installing NET.

Instead, I will go for Gambas.
Its very similar to VB.

Infact, the GUI of gambas is far better than the age old VB.

Thanks.

1 Like

I think this could be a good opportunity to point out to the teachers that there is an open alternative to VB Studio. And it might be worth it to use that in the curriculum too.

4 Likes

Absolutely!

2 Likes

Visual basic was a 32 bit system that is why i suspect it will not run on wine and 64 bit linux system

You could install a 32 bit linux and then wine then try, but as you have found another alternative then if it works and is close to the version for school stick with that

2 Likes

That may be true but Windows and some Windows programs still need visual basics, even with 64bit Windows.
Only thing I have ever accomplished with wine, is to break Linux, but if the alternative works, then use it!!!

2 Likes

No need for that.
You can run a 32 bit executable on 64 bit linux. You just to install 32 bit libraries.

apt install librarypackagename:i386

I have one running at the moment.

4 Likes

I tried, it didn’t work…

I’ve previously installed Windows apps in Wine that needed some version of DOT.net - probably Autodesk Sketchbook (which I believe is 32 bit - but I could be wrong).

It was practically seamless from memory.

I have Autodesk Sketchbook (Windows) installed on this Pop!_OS machine I’m typing on now… Works just fine… it was probably 18 months or so ago I installed Sketchbook…

I’ve never tried VB or any Basic interpreter on Linux… But DOT.net was reasonable straightforward (i.e. the Autodesk Sketchbook installer [exe] went out and found DOT.net for me)…

There is a Linux native version of Visual Studio Code, but that’s just an IDE. Microsoft do seem to be moving away from Linux - the “Preview” for Teams is no longer supported or downloadable - they tell you instead to run the Web version of Teams in MS Edge on Linux…

2 Likes

Exactly…

I tried but it doesn’t seem to work.

Let it be, atleast I found an alternative which is significatly BETTER than VB.

1 Like

You also need to enable i386 foreign architecture, and do an apt update , before you can install an i386 package

2 Likes

I think I did that too
Let it be, its not even required now.

Gambas3 is really far better. Its UI, customisation and everything.

1 Like

I see it is solved, but…
For .Net you could check winetricks.
Anyway, it should install in a 32bit wineprefix.

4 Likes

Gentoo seems to have a visual basic package

*  dev-lang/mono-basic
      Latest version available: 4.8
      Latest version installed: [ Not Installed ]
      Size of files: 3,206 KiB
      Homepage:      https://www.mono-project.com/docs/about-mono/languages/visualbasic/
      Description:   Visual Basic Compiler and Runtime
      License:       LGPL-2 MIT

No idea what its dependencies are. It is available in my Gentoo , which is without systemd.

2 Likes

Need to check.

Thanks!!