by Frank Cheung March 30th, 2015
ASP.NET 5 is the very latest yes, and it’s pretty cool. But it’s also a significant departure from previous .NET versions. This version introduces a more modular .NET that has been optimized to run in the cloud.
You can read a lot more about it on the various Microsoft sites out there, and it’s still in beta, so expect some things to change. But if you are the curious type and want to run an asp.net 5.0 beta application on Everleap right now, I’m going to show you exactly how to do it. You may be surprised at how easy it is.
- Download VS.NET 2015 beta at https://www.visualstudio.com/en-us/news/vs2015-vs
- Build your application in VS.NET 2015 beta
- In the Everleap Control Panel, make sure you have selected 4.x framework
- Download the Publish Profile in the Control Panel site overview page to your local computer
- Currently, you can only publish your site using FTP
- In VS.NET 2015, right click on the WebApplication folder (Under src folder)
- Click Publish and it should bring up the Publishing page
- Import the publishing profile that you downloaded in previous step
- Once imported, go to the Profile step and select FTP profile in the drop down
- Click “Next”
- In the Connection Page, change the Site Path to “site” instead of “site/wwwroot”
- Enter your password and validate connection
- In the Settings Screen
- Select KRE Version. You can use either kre-clr-win-x86 OR kre-coreclr-win-x86. Check out the ASP.NET v5 overview page to see the differences.
- In the File Publishing Options, uncheck “Delete all existing files prior to publishing.”
- You do not want to delete all files before publishing because it takes a long time to publish all the libraries again.
- Uncheck “Publish using PowerShell script.”
The publishing may take a while because you are publishing all of the libraries to the server.
After you have published the site, you will notice a new directory named approot under the site directory. This directory contains all of the packages.
That’s all there is to it.
As I mentioned, .NET 5 rethinks a lot of the old .NET concepts that we’ve become familiar with. But in the end most of it should be familiar to you.