Vscode First Experience

Source: Internet
Author: User
Tags dotnet visual studio 2010

This time, on the internet to see a lot of from. NET to Java, why would cause such a situation, I feel a few

1. Microsoft's ecological environment in China is bad, the death of money, many companies do not want to spend this part of the money

2. As a. NET developer, wages are generally low

Objective

Chat a bit, or to the point, this time mainly because Microsoft is also embracing open source, try new things to try Vscode (formerly: Visual Studio Code, Microsoft's cross-platform development tools, all hereinafter referred to as Vscode), Try Vscode develop MVC and console program (note: the console program can generate EXE, has not been researched out), in order to summarize their own learning, so that everyone can avoid falling into the pit I met, so there is this article

Get ready

Download

. NET Core SDK Installer:

Https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-dev-win-x64.latest.exe

Vscode:

https://code.visualstudio.com/

Vscode C # Plugins:

Https://github.com/OmniSharp/omnisharp-vscode/releases

Installation order is vscode–>. NET core SDK, Vscode C # plug-in first

When installing the plug-in need to pay attention to the plug-in after loading, open the lower left corner of the Vscode,vscode will be the. Net Core Debugger Download installation, this thing installed to the FQ software to open, or must fail, I have tried many times, I began to think that the software did not complete the problem, everywhere to check the problem, such as:

At this point is the download is being downloaded, you can do something else, this download feeling is still a little slow, when we download, will prompt us, and then let us restart Vscode, for the successful installation of transduction

Okay, after the reboot, so far, our windows using Vscode Development C # has been configured to complete the

Initial

Let's start with an example of the MVC test provided by Microsoft.

We'll get our test MVC code from the instance address https://github.com/aspnet/cli-samples provided by Microsoft.

Microsoft Test Project has several examples

We're just looking at MVC, and the rest of us are studying it ourselves.

Special Note: My new folder must be e-text, the Chinese may be a problem, I am a cup of the problem has been entangled in a few days

Get my instance code through GIT, and then we open it with Vscode, to open Vscode first, then open the test project we used in Vscode

The following conditions appear in the Vscode after opening

Now that we've just opened the project and we can't debug it, when we press F5 the debug will appear as shown

We click on the information, go to the editor, will open the Launch.json file, we do not care about it, but note the following figure shows the place

The paths of these two places need to be set with various absolute paths, some of which are not enclosed in curly braces, I do not know what is the use of, and then research, and now check whether the project name of the DLL on the line, if not please modify the next

Now let's choose our left menu and choose the Debug interface, as

The run can also run debugging directly by F5.

After a successful run, the red box will appear as the result of the run, and if it fails there will be a failure message inside the

Now we are in a state of success, and the access address also tells us that it is http://loacalhost:5000, we visit this address to see

Address information for page debugging, page rendering, and then we look at the contents of our page

Does it look like the page we saw in Visual Studio 2010 2013 2015 was written?

This is the end of the experience, thank you for making bricks

Next, I will use vscode for the development of MyBlog website, may meet some problems, but also a kind of progress ...

Resources

Developing Debug. NET Core applications using vs code http://www.cnblogs.com/linezero/p/5438074.html

Develop and Debug. NET Core application http://www.cnblogs.com/linezero/p/5452669.html from scratch using vs Code

Vscode First Experience

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.