Wayback Machine
192 captures
16 Apr 2019 - 29 Jan 2026
Mar APR May
16
2019 2020 2021
success
fail
About this capture
COLLECTED BY
Collection: Outlinks From Tweets
TIMESTAMPS
loading
The Wayback Machine - https://web.archive.org/web/20200416230043/https://code.visualstudio.com/docs/languages/dotnet
This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Skip to content 
Visual Studio Code
  • Docs
  • Updates
  • Blog
  • API
  • Extensions
  • FAQ
  • Search
  • Search Search
  • Download VS Code Download VS Code Download

Version 1.44 is now available! Read about the new features and fixes from March.

Dismiss this update
'; document.body.appendChild(div.children[0]); }
  • Overview
  • Setup
    • Overview
    • Linux
    • macOS
    • Windows
    • Network
    • Additional Components
  • Get Started
    • Intro Videos
    • Tips and Tricks
    • User Interface
    • Themes
    • Settings
    • Key Bindings
    • Display Language
    • Telemetry
  • User Guide
    • Basic Editing
    • Extension Marketplace
    • IntelliSense
    • Code Navigation
    • Refactoring
    • Debugging
    • Version Control
    • Integrated Terminal
    • Tasks
    • Settings Sync
    • Snippets
    • Emmet
    • Command Line
    • Multi-root Workspaces
    • Accessibility
  • Languages
    • Overview
    • JavaScript
    • JSON
    • HTML
    • CSS, SCSS and Less
    • TypeScript
    • Markdown
    • PowerShell
    • C++
    • Java
    • PHP
    • Python
    • Go
    • T-SQL
    • C#
    • .NET Core
  • Node.js / JavaScript
    • Working with JavaScript
    • Node.js Tutorial
    • Node.js Debugging
    • Node.js Deployment
    • React Tutorial
    • Angular Tutorial
    • Vue Tutorial
    • Ember Tutorial
    • Debugging Recipes
    • Extensions
  • TypeScript
    • Tutorial
    • Compiling
    • Debugging
  • Python
    • Tutorial
    • Editing Code
    • Linting
    • Debugging
    • Environments
    • Testing
    • Jupyter Notebook Support
    • Python Interactive
    • Data Science Tutorial
    • Django Tutorial
    • Flask Tutorial
    • Create containers
    • Python on Azure
    • Settings Reference
  • Java
    • Getting Started
    • Navigate and Edit
    • Refactoring
    • Linting
    • Project Management
    • Build Tools
    • Run and Debug
    • Testing
    • Spring Boot
    • Application Servers
    • Java on Azure
    • Extensions
    • FAQ
  • C++
    • GCC on Windows
    • Microsoft C++
    • GCC on Linux
    • GCC on Windows Subsystem for Linux
    • Clang on macOS
    • Debugging
    • Editing
    • Settings
    • Enhanced colorization
    • c_cpp_properties.json
    • Debug configuration
    • Natvis framework
    • Pipe transport
    • Logging
    • FAQ
  • Containers
    • Overview
    • Node.js
    • Python
    • ASP.NET Core
    • Debug
    • Registries
    • Deploy to Azure
    • Choose a dev environment
    • Customize
  • Azure
    • Extensions
    • Deployment
    • Remote Debugging for Node.js
    • Docker
    • MongoDB
    • Kubernetes
    • Try Azure App Service
  • Remote
    • Overview
    • SSH
    • Containers
    • Visual Studio Online
    • Windows Subsystem for Linux
    • Tutorials
    • Tips and Tricks
    • Advanced Containers
    • Linux Prerequisites
    • FAQ

Topics

Using .NET Core in Visual Studio Code

.NET Core provides a fast and modular platform for creating server apps that run on Windows, Linux, and macOS. Use Visual Studio Code with the C# and F# extensions to get a powerful editing experience with C# IntelliSense, F# IntelliSense (smart code completion), and debugging.

Prerequisites

Install the following:

  • .NET Core SDK. The SDK also includes the Runtime.
  • The C# extension from the VS Code Marketplace.
  • The F# extension (Ionide) from the VS Code Marketplace.

Create a C# "Hello World" app

  1. Initialize a C# project:

    • Open a terminal/command prompt and navigate to the folder in which you'd like to create the app.
    • Enter the following command in the command shell:
      dotnet new console
  2. When the project folder is first opened in VS Code:

    • A "Required assets to build and debug are missing. Add them?" notification appears at the bottom right of the window.
    • Select Yes.
  3. Run the app by entering the following command in the command shell:

    dotnet run

Watch a video tutorial for further C# setup help on Windows, macOS, or Linux.

Create an F# "Hello World" app

  1. Initialize an F# project:

    • Open a terminal/command prompt and navigate to the folder in which you'd like to create the app.
    • Enter the following command in the command shell:
    dotnet new console -lang F#
  2. Once it completes, open the project in Visual Studio Code:

    code .
  3. Run the app by entering the following command in the command shell:

     dotnet run

Next steps

  • Continue exploring C# development: Debug with VS Code and .NET Core
  • Basic Editing - Learn about the powerful VS Code editor.
  • Code Navigation - Move quickly through your source code.
  • Working with C# - Learn about the great C# support you'll have when working on your .NET Core application.
  • Tasks - Running tasks with Gulp, Grunt, and Jake. Showing Errors and Warnings
  • .NET Core Docs - Visit the .NET Core docs for more information on this powerful cross-platform development solution.
  • Deploying Applications to Azure - Deploy your app to Azure.
  • Get Started with F# in Visual Studio Code
3/6/2019

In this article there are 4 sectionsIn this article

  • Prerequisites
  • Create a C# "Hello World" app
  • Create an F# "Hello World" app
  • Next steps
  • Hello from Seattle.
  • Follow @code
  • Support
  • Privacy
  • Terms of Use
  • License
Microsoft homepage Microsoft homepage © 2020 Microsoft