As the biggest developer meeting in the open source world, any news on Red Hat devnation is bound to excite the world's Open-source developers. So far, the most important news is that Microsoft has officially unveiled the. NET core 1.0, ASP.net Core 1.0, and Entity Framework Core 1.0, which supports Windows, OS X (from. NET Blog), It should now be called MacOS) and Linux.
The. NET core is cross-platform, open source, and modular. NET platform, which can be used to create modern web applications, micro services, libraries, and console applications. The Microsoft release downloads include. NET core Runtime, libraries, tools, and asp.net core libraries. At the same time, we have published Visual Studio and Visual Studio Code extensions so that developers can create. NET core projects. ”
Getting Started
It's fairly easy to try. NET core and ASP.net core on Windows, MacOS, or Linux platforms, and you can start with the. NET Core SDK. Here we recommend landing. NET core to select the appropriate platform and download it. Also, if you want to use Visual Studio, you need to make sure that Visual Studio 2015 Update 3 is installed.
In the announcing. NET Core 1.0 article, the author rich lander"a small test" to give a surprise "Hello world!, developers can check. NET core tutorials and asp.net core Tutorials a deeper degree of learning.
dotnet new
dotnet restore
dotnet Run
Open. NET Core in vs code
The first step is to download the install. NET core and Visual Studio Code. You can open a command prompt input dotnet--version Verify that the latest version of. NET core is installed.
The second step is to create a new folder with the same Code directory to open vs code;
Step three, create and configure Launch.json and Tasks.json files:
Launch.json {"Version": "0.2.0", "configurations": [{"Name": ". NET Core Launch (console)" , "type": "CoreCLR", "Request": "Launch", "Prelaunchtask": "Build", "progr Am ":" ${workspaceroot}/bin/debug/netcoreapp1.0/app.dll "," args ": [" 1 "," 2 "," 3 "," 4 "," banana "]," CWD "
: ' ${workspaceroot} ', ' Stopatentry ': false}, {' Name ': '. NET Core Launch (web) ', ' type ': ' CoreCLR ', ' request ': ' Launch ', ' prelaunchtask ': ' Build ', ' program
":" ${workspaceroot}/bin/debug/netcoreapp1.0/app.dll "," args ": []," CWD ":" ${workspaceroot} ", ' Stopatentry ': false, ' Launchbrowser ': {' enabled ': true, ' args ': ' ${a Uto-detect-url} ", Windows: {" command ":" cmd.exe "," args ":"/C S Tart ${auto-detect-url} "
}, "OS X": {"command": "Open"}, "Lin UX ': {' command ': ' Xdg-open '}}}, {' Name ': ". NET Core Attach", "type": "CoreCLR", "Request": "Attach", "ProcessName": "<exampl E> "}]}
Tasks.json
{
"version": "0.1.0", "
Command": "Dotnet",
"Isshellcommand": True,
"args": [],
"Options": {
"CWD": "${workspaceroot}"
},
"Tasks": [
{
"taskname": "Build",
"args": [],
"Isbuildcommand": True,
"Showoutput": "Silent",
"Problemmatcher": "$msCompile"
}
]
}
The fourth step, into the "Debugging" interface, click the "Play" button, you can run. NET core applications.
Love Linux, Love Open source of Microsoft
In the Wired report, author Klint Finley used the title: "Microsoft says it's in love with Linux." Now it's finally proving it, but it's actually more than that. Not sealed on the Windows platform, will. NET core Open source, all developers can not only try it for free to build their own applications, but also to modify or improve.
And this time, it's not just Microsoft's own gap across Windows, MacOS, Linux, and at Nevnation, Red Hat also announced that it will provide official support for. NET in its enterprise Linux operating system.
This year, about Microsoft, the most heard voice, is Microsoft's open source, Linux, cross-platform and artificial intelligence, a lot of things. At the 2016 Microsoft Developer Summit held in Beijing on June 1, the author at the scene basically watched Microsoft CEO Satya Nadella, and so on all the speeches, this is a belief recharge the meeting, in the conference, you can see Microsoft in artificial Intelligence, cross-platform and many other areas of achievement. And, interestingly, several times at the meeting, the speaker was shown with a MacBook or an iphone.
Listen to Erich Gamma Master share vs Code (at Microsoft Developer Summit)
And the impression is especially profound, when is Microsoft outstanding Engineer Erich Gamma, Microsoft Asia Pacific Research Group Cloud Computing senior director Liangobi successively to share "the Microsoft loves Open source", "The Microsoft Loves Linux", but in last week's 2016 open source China Open Source World Summit Forum, I also heard again "Microsoft Loves open source" The session.
Microsoft's role in open source, Linux, cross-platform, we still do not live up to praise, but also a lot of companies are difficult to hold a candle to the existence.