How to deploy a self contained .NET Core app.

in ASP.NET MVC
by Mahmut Jomaa on June 27, 2016
mnwall-separatormnwall-separator
Ok this blog post is rather a duplicate of the docs. However many people wrote me an e-mail because they simply didn't find it.   Docs: https://docs.microsoft.com/en-us/dotnet/articles/core/deploying/index   1. Change the…

.NET Core 1.0 got released

in News
by Mahmut Jomaa on June 27, 2016
mnwall-separatormnwall-separator
Today is the day. Microsoft announced something sweet at Red Hat DevNation. After a 3 year long journey .NET Core 1.0 got released: https://blogs.msdn.microsoft.com/dotnet/2016/06/27/announcing-net-core-1-0/     1. Get the Visual…

Microsoft aquired Xamarin

in News
by Mahmut Jomaa on February 25, 2016
mnwall-separatormnwall-separator
Microsoft announced today that they aquired Xamarin. This is HUGE!   About Xamarin Xamarin is a provider for mobile app development technology. You can write a C# application and cross-compile…

Building a simple Brainfuck Interpreter in C

in C/C++
by Mahmut Jomaa on December 08, 2015
mnwall-separatormnwall-separator
Brainfuck is a Turing-complete language that isn't necessary designed for productive usage :) However it is actually great to understand C pointers. An Interpreter is a computer program that directly…

How to enable precompiled razor views (.cshtml) in ASP.NET 5

in ASP.NET MVC
by Mahmut Jomaa on November 29, 2015
mnwall-separatormnwall-separator
If you want your .cshtml to be precompiled before the first request hits, you need to enable it manually. This increases time needed for compilation, however the compilation process still…

Upgrading your ASP.NET 5 application from beta8 to RC1

in ASP.NET MVC
by Mahmut Jomaa on November 23, 2015
mnwall-separatormnwall-separator
There aren't that many API changes, the focus on RC1 was to stabilize the code base.   Installation of RC1: 1. First download and install the RC1 upgrade for Visual…

Pasterino.com

in Projects
by Mahmut Jomaa on November 09, 2015
mnwall-separatormnwall-separator
Today I'm releasing a new online tool: pasterino.com In short: You can store text online or use it as your syntax highlghter (for your blog).   Features: Paste and share…

Upgrading your ASP.NET 5 application from beta8 to RC1

There aren't that many API changes, the focus on RC1 was to stabilize the code base.

 

Installation of RC1:

1. First download and install the RC1 upgrade for Visual Studio:

https://docs.asp.net/en/latest/getting-started/installing-on-windows.html

 

2. Then install the latest dnx (rc1-final) from cmd / terminal:

 

 

 

global.json

Change the string "version": "1.0.0-beta8" to "version": "1.0.0-rc1-final"

 

 

project.json

  • Replace all beta8 with rc1-final
  • EntityFramework.SqlServer got renamed to EntityFramework.MicrosoftSqlServer
  • EntityFramework.Sqlite is now case sensitive
  • Microsoft.Framework.* got renamed to Microsoft.Extensions.*

Example:

  

Caution: SignalR rc1-final needs an additional NuGet feed (aspnetmaster v3). Example NuGet.config:

 

Besides that there might be an update for SignalR soon:

https://gist.github.com/moozzyk/a7e9567752c524df2685

 
A new option

If we look at the dnx compilation source codehere, we can see that it expect us to check the compilation option 'emitEntryPoint' for console applications. False for libraries.

 

 

Views

Change @using Microsoft.Framework.OptionsModel to @using Microsoft.Extensions.OptionsModel

 

 

Startup.cs

Add the static void Main method to your Startup.cs.

 

The application base path is automaticly called if no base path is specified. Remove  .SetBasePath(appEnv.ApplicationBasePath) if possible:

 

 

nginx

There is a bug in RC1 that will get fixed in RC2 or in a RC1-1 update. Add this header to your *.conf file:

 

 

Additional Ressources:

Github Announcements

MusicStore Sample

 

 

 



Mahmut Jomaa is a Software Engineer from Germany.

Currently he attends university to gain more knowledge in Computer Science.


Security code Refresh

 

Because insights are awesome!