ASP.NET Core HTTPRequestMessage returns strange JSON message

According to this article, ASP.NET Core MVC does not support HttpResponseMessage-returning methods by default. If you want to keep using it, you can, by using WebApiCompatShim: Add reference to Microsoft.AspNetCore.Mvc.WebApiCompatShim to your project. Configure it in ConfigureServices(): services.AddMvc().AddWebApiConventions(); Set up route for it in Configure(): app.UseMvc(routes => { routes.MapWebApiRoute( name: “default”, template: “{controller=Home}/{action=Index}/{id?}”); });

ASP.NET Core RC2 SignalR Hub Context outside request thread

You will have to pull the current github version from : Signalr Github (Commit: b95ac7b at time of writing) Once you have this, and have loaded the solution, or added all three of the projects to your existing solution, you will need to change project.json in all three projects. Microsoft.AspNetCore.SignalR.Server – project.json You will see … Read more

Build .exe file in .NET Core RC2

There are actually 2 app models in .NET Core: Portable apps: heavily inspired by “DNX console apps”, these apps don’t produce .exe files and are instead executed by the .NET Core shared runtime (whose version is defined by the Microsoft.NETCore.App package, thanks to its special type: platform attribute). The corresponding .NET Core runtime must be … Read more

How to load assemblies located in a folder in .NET Core console app

Currently running against netcoreapp1.0 you don’t actually need to go to the extent of implementing your own AssemblyLoader. There is a Default that exists which works just fine. (Hence @VSG24 mentioning that the Load doesn’t do anything). using System; using System.Runtime.Loader; namespace AssemblyLoadingDynamic { public class Program { public static void Main(string[] args) { var … Read more