What's New

ASP.NET 5 buildpack updates for beta4 support

Share this post:

We just pushed out a new version of the ASP.NET 5 buildpack in Bluemix! The update allows you to run applications using the ASP.NET 5 beta4 release. Below I’ll explain the differences you may notice.

Staging output

In beta4 there were command-line tool and runtime name changes. Now you’ll see dnvm instead of kvm, dnx instead of k, and dnu instead of kpm. Make sure you install these if you are running applications locally.

project.json

The NuGet packages that the applications depend on are updated to the beta4 versions. The dependency versions must match the DNX version.

<code>"dependencies": {
"Kestrel": "1.0.0-beta4",
"Microsoft.AspNet.Mvc": "6.0.0-beta4",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta4"
}</code>

Target frameworks are renamed. The “dnx451” framework must be present because the Core CLR isn’t available on Linux in beta4.

<code>"frameworks": {
"dnx451": { },
"dnxcore50": { }
}</code>

C# code

There are breaking changes between ASP.NET 5 beta releases so when a dependency version changes, some of the application code may also need to change. This will vary based on the application, but one example encountered updating the boilerplates was how to add the MVC framework in Startup.cs:

<code>public void Configure(IApplicationBuilder app)
{
app.UseServices(services =>
{
services.AddMvc();
});
}</code>

becomes

<code>public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
}</code>

You can see other beta4 changes in the release announcements. Hopefully this helps you with your own ASP.NET 5 applications.

More stories
April 30, 2019

Introducing IBM Analytics Engine v1.2 and Announcing the Deprecation of IBM Analytics Engine v1.0

We are excited to inform you about the new version of IBM Analytics Engine v1.2 that will be available starting May 15, 2019. Along with this release, Analytics Engine v1.0 will be retired.

Continue reading

April 23, 2019

Announcing the Deprecation of the Watson Machine Learning JSON Token Authentication Service

We’d like to inform you about the deprecation of the Watson Machine Learning JSON Token Authentication service. This method of authentication will be retired on May 30, 2019.

Continue reading

April 19, 2019

Introducing IBM Cloud Object Storage Firewall: Further Secure Your Data

IBM Cloud Object Storage (COS) is giving you more control over who can access your data. We have introduced a new capability allowing you to configure your buckets with trusted IP address(es) that will dictate access to the data in COS.

Continue reading