Coding and Gaming
Development Blog Categories (1 Articles)
This article will walk through upgrading to .NET Core 3.0.
Overall, it was pretty smooth, but I did run into 3 big things...
  1. Newtonsoft is depreciated.
    First, have a plan ready for replacing Newtonsoft as it's been replaced. The new recommendation is System.Text.Json.
  2. Second, if you want to continue to use MVC routing you need to add this to the Startup.cs => ConfigureServices function.
    services.AddMvc(option => option.EnableEndpointRouting = false);
  3. Webconfig => hostingModel="inprocess"
    <aspNetCore processPath="dotnet" arguments=".\Website.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    Finally, I lost a lot of time on this good one. After building and deploying, I was having issues on my production server. For some reason, this inprocess hosting model was added and seemed to screw everything up, I still want to see why that isn't working, but for now I've switched it using a setting in the csproj file:
    <AspNetCoreHostingModel>OutOfProcess</AspNetCoreHostingModel>

Permanent Link
If this article helped you, or you have any thoughts on how to do this better, please click the Like button and/or leave a comment below.

Likes: [1]

Comments: [0]






(this is only to show your gravatar icon)