Moving to ASP.NET Core RC2: Tooling

.NET Core Runtime RC2 has been released a few days ago along with .NET Core SDK Preview 1. At the same time of .NET Core release, ASP.NET Core RC2 has also been released. While I am migrating my projects to RC2, I wanted to write about how I am getting each stage done. In this post, I will show you the tooling aspect of the changes.
2016-05-22 14:04
Tugberk Ugurlu


.NET Core Runtime RC2 has been released a few days ago along with .NET Core SDK Preview 1. At the same time of .NET Core release, ASP.NET Core RC2 has also been released. Today, I started doing the transition from RC1 to RC2 and I wanted to write about how I am getting each stage done. Hopefully, it will be somewhat useful to you as well. In this post, I want to talk about the tooling aspect of the transition.

Get the dotnet CLI Ready

One of the biggest shift from RC1 and RC2 is the tooling. Before, we had DNVM, DNX and DNU as command line tools. All of them are now gone (RIP). Instead, we have one command line tool: dotnet CLI. First, I installed dotnet CLI on my Ubuntu 14.04 VM by running the following script as explained here:

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
sudo apt-get update
sudo apt-get install dotnet-dev-1.0.0-preview1-002702

This installed dotnet-dev-1.0.0-preview1-002702 package on my machine and I am off to go:

image

You can also use apt-cache to see all available versions:

image

Just to make things clear, I deleted ~/.dnx folder entirely to get rid of all RC1 garbage.

Get Visual Studio Code Ready

At this stage, I had the C# extension installed on my VS Code instance on my Ubuntu VM which was only working for DNX based projects. So, I opened up VS Code and updated my C# extension to latest version (which is 1.0.11). After the upgrade, I opened up a project which was on RC1 and VS Code started downloading .NET Core Debugger.

image

image

That was a good experience, I didn't dig into how to do that but I am not sure at this point why it didn't come inside the extension itself. There is probably a reason for that but not my priority to dig into right now :)

Try out the Setup

Now, I am ready to blast off with .NET Core. I used dotnet CLI to create a sample project by typing "dotnet new --type=console" and opened up project folder with VS Code. As soon as VS Code is launched, it asked me to set the stage.

image

Which got me a few new files under .vscode folder.

image

I jumped into the debug pane, selected the correct option and hit the play button after putting a breakpoint inside the Program.cs file.

image

Boom! I am in business.

image

Now, I am moving to code changes which will involve more hair pulling I suppose.

Resources



Comments

maani
by maani on Wednesday, Jun 15 2016 07:37:09 +00:00
Great post!! This can be one particular of the most useful blogs We’ve ever arrive across on this subject. Basically Wonderful. I am also a specialist in this topic so I can understand your hard work.
verizon wireless coupon code august
by verizon wireless coupon code august on Saturday, Jul 30 2016 09:42:56 +00:00
I can learn some new knowledge, I like the valuable information you provide in your articles.
fb login
by fb login on Thursday, Aug 18 2016 07:57:58 +00:00
I really like the dear information you offer in your articles. I’m able to bookmark your site and show the kids check out up here generally. Im fairly positive theyre likely to be informed a great deal of new stuff here than anyone.
HBR Cases Solutions
by HBR Cases Solutions on Tuesday, Aug 30 2016 06:25:48 +00:00
Only professional writers can make this kind of material, cheers!!
 do my computer science homework
by do my computer science homework on Tuesday, Aug 30 2016 09:41:52 +00:00
This is really a great stuff for sharing. Keep it up .Thanks for sharing.
ipad service center in Delhi
by ipad service center in Delhi on Friday, Sep 02 2016 11:58:06 +00:00
I simply want to tell you that I am new to weblog and definitely liked this blog site. I have been meaning to write something like this on my website and you have given me an idea.
Top MBA college in Punjab
by Top MBA college in Punjab on Thursday, Sep 08 2016 12:07:34 +00:00
I will be back to look at out more of your articles later!
cable tv alternatives
by cable tv alternatives on Thursday, Sep 15 2016 10:51:17 +00:00
Thanks for helping us understand how it is possible to Move to ASP.NET Core RC2 and about Tooling. I am new with ASP.net and here it seems very confusing to me. You have described about tooling in an easy manner and it really helped me to follow what you are explaining here.
hawaii tech support
by hawaii tech support on Tuesday, Sep 20 2016 12:29:39 +00:00
I have studied the programming language java and I think Asp.net is much simpler than java. I have done a project in asp.net and it is very simple but I don’t know much about this platform, after reading your article I got a clear idea about this.
Accounting Thesis Help
by Accounting Thesis Help on Monday, Sep 26 2016 05:58:49 +00:00
I personally like your post; you have shared good insights and experiences. Keep it up.
medical billing companies india
by medical billing companies india on Tuesday, Sep 27 2016 09:35:51 +00:00
It is very happy to know about the release of NET Core Runtime RC2..Net is one of simple and safe languages and it is very easy to do projects in this language. I think RC2is is the core feature of it. Please provide more details about it.
BBA Assignment Writing Service
by BBA Assignment Writing Service on Wednesday, Sep 28 2016 09:35:22 +00:00
Good way of telling, good post to take facts regarding my presentation subject matter, which i am going to deliver in my college
online dissertation editing service
by online dissertation editing service on Thursday, Sep 29 2016 10:58:38 +00:00
This is such an inspirational and thought-provoking piece of work! I am delighted to read something so good considering I have not had a good read in a long time!
gba
by gba on Sunday, Oct 02 2016 13:10:39 +00:00
download jio 4g voice apk free for android.. download pokemon roms free.. download voot free here.. read tech news here..
Messaging Solutions
by Messaging Solutions on Thursday, Oct 06 2016 11:44:43 +00:00
SCS is focused on providing the most comprehensive, heterogeneous, integrated IT Software solutions to enterprises around the world.
Two way SMS Gateway provider
by Two way SMS Gateway provider on Thursday, Oct 06 2016 11:45:33 +00:00
I AM a fan of your blog. Thanks for sharing this information.
Print control software
by Print control software on Thursday, Oct 06 2016 11:46:54 +00:00
Article is very interesting,thanks for your sharing.I will visit this site.welcome to my site:
professional photo editing service
by professional photo editing service on Friday, Oct 07 2016 07:20:24 +00:00
I am very happy to see this informative site. I completed my graduation in Computer science and I am planning to study .Net. but I don’t know more about the topics and scope of it. This site helped me a lot to understand more about this subject.
buy coursework online
by buy coursework online on Saturday, Oct 08 2016 12:05:56 +00:00
The accompanying areas portray multithreading and nonconcurrent programming from the viewpoint of presentation layer outline in ASP.NET Web applications. For data about how to utilize these instruments in Windows Forms-based applications, see "Multithreading and Asynchronous Programming in Windows Forms-Based Applications" in the informative supplement of this guide.
Adam
by Adam on Thursday, Oct 13 2016 08:53:38 +00:00
I am beginner at programming language like java and I think Asp.net is much simpler than java. I have done a project in asp.net and it is very simple but I don’t know much. The market is more shared by Java. but asp.net is quite different.
HBS Case Studies Solutions
by HBS Case Studies Solutions on Saturday, Oct 15 2016 07:39:10 +00:00
Things are very open and intensely clear explanation of issues. was truly information. Your website is very beneficial.
Case Study Helper
by Case Study Helper on Saturday, Oct 15 2016 10:13:08 +00:00
I’m really impressed with your article, such great & usefull knowledge you mentioned here
all top tricks
by all top tricks on Saturday, Oct 15 2016 11:46:34 +00:00
excellent post. and site thank you for provided\
 UK Law Essay Service
by UK Law Essay Service on Wednesday, Oct 19 2016 09:35:42 +00:00
This is such an inspiring and thought-provoking piece of work! I am happy to read something so good considering I have not had a good read in a extended time!
zapya
by zapya on Tuesday, Oct 25 2016 11:16:27 +00:00
Download Zapya for PC to share files and folders easily from PC to other devices

Tags