Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create and run Visual Basic Code on Mac in Visual Studio

I have spent countless hours trying to figure this out, but I just can't seem to. I hope you have the patience to read my problems and help me fix them.

I am taking a Visual Basic course online for my school. Since our school has no PC and just Macs, I am running into a few issues. Our teacher wants us to use Visual Studio, which I have downloaded for Mac.

We were told to create a project using Visual Basic. I followed the instructor and attempted to do what he did.

I open Visual Studio, create a new project, select the code to be VB (not C# or anything else) and prepare to start coding. I start to type and I am not able to as a pop up box says "No completions found".

All I want to do is just make my code in a .vb file (which is the format the teacher wants... will they accept a vb.NET file, idk what that is) and be able to run it in Visual Studio.

But nothing is working out for me. All the tutorials online show how to create projects in Mac and run them, but for C#. I did research and it said to download Mono, and I did, but I don't know what to do with it.

If anyone can please help, I will be fulfilled with tremendous gratitude. Thank you.

like image 274
Charlie Avatar asked Apr 29 '17 19:04

Charlie


People also ask

How do I run a Visual Basic code on a Mac?

Drag Visual Studio Code. app to the Applications folder, making it available in the macOS Launchpad. Open VS Code from the Applications folder, by double clicking the icon. Add VS Code to your Dock by right-clicking on the icon, located in the Dock, to bring up the context menu and choosing Options, Keep in Dock.

Can Visual Studio Mac run Visual Basic?

No, you can't run a VB.Net program on mac with creating windows form.

How do I run Visual Basic code in Visual Studio code?

Open Visual Studio. On the start window, choose Create a new project. In the Create a new project window, choose Visual Basic from the Language list. Next, choose Windows from the Platform list and Console from the Project types list.

Can you code in Visual Studio on a Mac?

In addition to a code editor and debugger, Visual Studio for Mac includes compilers, code completion tools, graphical designers, and source control features to ease the software development process. If you haven't already installed Visual Studio, go to the Visual Studio downloads page to install it for free.


2 Answers

You can use another program called Rider from Jetbrains. You are a student so you can use Rider for free.

http://www.jetbrains.com/rider/

You can choose for Library projects and console app projects, but that is for a start more than enough.

Jetbrains Rider

like image 138
Marco de Boer Avatar answered Oct 19 '22 23:10

Marco de Boer


VB.NET is not the first batch of languages to be supported on VS Code. You should use C# or F# instead.

These are supported programming languages for Visual Studio Code at the moment : JavaScript, JSON, HTML, CSS, Sass, Less, TypeScript, Markdown, PHP, Python, Go, Dockerfile, T-SQL, C#, C++

Thank you.

like image 33
HappyBono Avatar answered Oct 19 '22 23:10

HappyBono