Visual Studio Code on macOS Installation. Download Visual Studio Code for macOS. Double-click on the downloaded archive to expand the contents. Drag Visual Studio Code.app to the Applications folder, making it available in the Launchpad. Add VS Code to your Dock by right-clicking on the icon to bring up the context menu and choosing Options.
Visual Studio for Mac makes it easy to develop your app’s service with its support for the latest ASP.NET Core Web development platform. ASP.NET Core runs on .NET Core, the latest evolution of the .NET Framework and runtime. It’s been tuned for fast performance, factored for small install sizes, and reimagined to run on Linux and macOS, as well as Windows.
.NET Core 2.1 is automatically installed when you install Visual Studio for Mac.
Open Visual Studio for Mac. On the Start Screen, select New Project..
This will display the New Project dialog, allowing you to select a template to create your application.
There are a number of projects that will provide you with a pre-built template to start building your ASP.NET Core Application. These are:
Select the ASP.NET Core Empty Web Application and press Next. Give the Project a Name and press Create. This creates a new ASP.NET Core app. In the solution pad's left pane, expand the second arrow and then select Startup.cs. It should look similar to the image below:
The ASP.NET Core Empty template creates a web application with two default files: Program.cs and Startup.cs, which are explained below. It also creates a Dependencies folder, which contains your project’s NuGet package dependencies such as ASP.NET Core, the .NET Core framework, and the MSBuild targets that build the project:
Open and inspect the Program.cs file in your project. Notice that several things are happening in the Main method – the entry into your app:
An ASP.NET Core app creates a web server in its main method by configuring and launching a host via an instance of WebHostBuilder. This builder provides methods to allow the host to be configured. In the template app the following configurations are used:
.UseStartup<Startup>(): Specifies the Startup class.However, you can also add additional configurations, such as:
UseKestrel: Specifies the Kestrel server will be used by the appUseContentRoot(Directory.GetCurrentDirectory()): Uses the web project's root folder as the app's content root when the app is started from this folder.UseIISIntegration(): Specifies that the app should work with IIS. To use IIS with ASP.NET Core both UseKestrel and UseIISIntegration need to be specified.The Startup class for your app is specified in the UseStartup() method on the CreateWebHostBuilder. It is in this class that you will specify the request handling pipeline, and where you configure any services.
Open and inspect the Startup.cs file in your project:
This Startup class must always adhere to the following rules:
ConfigureServices and ConfigureThe ConfigureServices method defines the services that will be used by your app.
The Configure allows you to compose your request pipeline using Middleware. These are components used within an ASP.NET application pipeline to handle requests and responses. The HTTP pipeline consists of a number of request delegates, called in sequence. Each delegate can choose to either handle the request itself, or pass it to the next delegate.
You can configure delegates by using the Run,Map, and Use methods on IApplicationBuilder, but the Run method will never call a next delegate and should always be used at the end of your pipeline.
The Configure method of the pre-built template is built to do a few things. First, it configures an exception handling page for use during development. Then, it sends a response to the requesting web page with a simple 'Hello World'.
This simple Hello, World project can run now without any additional code being added. To run the app, you can either select which browser you want to run app the app in using the dropdown right of the Play button, or simply hit the Play (triangular) button to use your default browser:
Visual Studio for Mac uses a random port to launch your web project. To find out what port this is, open the Application Output, which is listed under View > Pads. You should find output similar to that shown below:
Once the project is running, your default web browser should launch and connect to the URL listed in the Application Output. Alternatively, you can open any browser of your choice, and enter http://localhost:5000/, replacing the 5000 with the port that Visual Studio output in the Application Output. You should see the text Hello World!:
ASP.NET Core Apps use the Model-View-Controller (MVC) design pattern to provide a logical separation of responsibilities for each part of the app. MVC consists of the following:
For more information on using MVC refer to Overview of ASP.NET Core MVC guide.
To add a controller, do the following:
Right-click on the Project name and select Add > New Files. Select General > Empty Class, and enter a controller name:
Add the following code to the new controller:
Add the Microsoft.AspNetCore.Mvc dependency to the project by right-clicking the Dependency folder, and selecting Add Package...
Use the Search box to browse the NuGet library for Microsoft.AspNetCore.Mvc, and select Add Package. This may take a few minutes to install and you may be prompted to accept various licenses for the required dependencies:
In the Startup class, remove the app.Run lambda and set the URL routing logic used by MVC to determine which code it should invoke to the following:
Make sure to remove the app.Run lambda, as this will override the routing logic.
MVC uses the following format, to determine which code to run:
/[Controller]/[ActionName]/[Parameters]
When you add the code snippet above, you are telling the app to default to the HelloWorld Controller, and the Index action method.
Add the services.AddMvc(); call to the ConfigureServices method, as illustrated below:
You can also pass parameter information from the URL to the controller.
Add another method to your HelloWorldController, as illustrated below:
If you run the app now, it should automatically open your browser:
Try to browse to http://localhost:xxxx/HelloWorld/Xamarin?name=Amy (replacing xxxx with the correct port), you should see the following:

If you need to install .NET Core manually on Mac OS 10.12 (Sierra) and higher, do the following:
Before you start installing .NET Core, ensure that you have updated all OS updates to the latest stable version. You can check this by going to the App Store application, and selecting the Updates tab.
Follow the steps listed on the .NET Core site.
Make sure to complete all steps successfully to ensure that .NET Core is installed successfully.
This guide gave an introduction to ASP.NET Core. It describes what it is, when to use it, and provided information on using it in Visual Studio for Mac.For more information on the next steps from here, refer to the following guides:
VLC can play pretty much any format, and has a host of useful capabilities; NewTek NDI VLC Plugin, supplied with the free NewTek NDI Tools Pack, converts VLC playback to NDI in real-time on a stock PC, making the content instantly production-ready for your NDI-enabled switcher and other production tools. NDI VLC Plugin Present video content and other supported multimedia to the network as IP sources directly from VLC Media Player. The NDI VLC Plugin encodes the output from each instance of the free player to NDI in real time, making media files of virtually any format available for use in your live production. Ndi for mac vlc. Download VLC Media Player for Mac OS. Download the setup file for VLC Media Player for Mac. Go to the “Download Files” and search for “VLC Media Player for Mac”. Drag the VLC Media Player from the download folder and then drop it to the Application folder. This will copy the VLC Media Player in the.
Visual Studio Code.app to the Applications folder, making it available in the Launchpad.You can also run VS Code from the terminal by typing 'code' after adding it to the path:
$PATH value to take effect. You'll be able to type 'code .' in any folder to start editing files in that folder.Note: If you still have the old code alias in your .bash_profile (or equivalent) from an early VS Code version, remove it and replace it by executing the Shell Command: Install 'code' command in PATH command.
To manually add VS Code to your path, you can run the following commands:

Start a new terminal to pick up your .bash_profile changes.
Note: The leading slash is required to prevent $PATHVisit emacsformacosx.com. from expanding during the concatenation. Remove the leading slash if you want to run the export command directly in a terminal.
Out of the box VS Code adds actions to navigate in editor history as well as the full Debug tool bar to control the debugger on your Touch Bar:
After upgrading to macOS Mojave version, you may see dialogs saying 'Visual Studio Code would like to access your {calendar/contacts/photos}.' This is due to the new privacy protections in Mojave and is not specific to VS Code. The same dialogs may be displayed when running other applications as well. The dialog is shown once for each type of personal data and it is fine to choose Don't Allow since VS Code does not need access to those folders. You can read a more detailed explanation in this blog post.
VS Code ships monthly releases and supports auto-update when a new release is available. If you're prompted by VS Code, accept the newest update and it will get installed (you won't need to do anything else to get the latest bits).
Note: You can disable auto-update if you prefer to update VS Code on your own schedule.
You can configure VS Code through settings, color themes, and custom keybindings and you will often see mention of the File > Preferences menu group. On a macOS, the Preferences menu group is under Code, not File.
Once you have installed VS Code, these topics will help you learn more about VS Code:
After downloading, when you try to open VS Code on macOS Catalina, you may see a message 'Visual Studio Code' can't be opened because Apple cannot check it for malicious software'. This is because VS Code is not currently notarized but VS Code will run successfully on macOS Catalina.
To workaround the notarization check, follow the instructions to Open a Mac app from an unidentified developer or from the Apple menu, go to System Preferences > Security & Privacy > General and choose Open Anyway.
If you are running macOS Mojave version, you may see dialogs saying 'Visual Studio Code would like to access your {calendar/contacts/photos}.' This is due to the new privacy protections in Mojave discussed above. It is fine to choose Don't Allow since VS Code does not need access to those folders.
If VS Code doesn't update once it restarts, it might be set under quarantine by macOS. Follow the steps in this issue for resolution.