Core

Matters related to .Net Core.

  • Article,  ASP.NET Core,  Microsoft

    ASP .NET Core – the new stuff

    The latest read concerning ASP.Net Core 2.1

    [visual-link-preview encoded=”eyJ0eXBlIjoiZXh0ZXJuYWwiLCJwb3N0IjowLCJwb3N0X2xhYmVsIjoiIiwidXJsIjoiaHR0cHM6Ly9tc2RuLm1pY3Jvc29mdC5jb20vZW4tdXMvbWFnYXppbmUvbXQ4Mjk3MDYiLCJpbWFnZV9pZCI6Njg3LCJpbWFnZV91cmwiOiJodHRwczovL3Njb3R0Z2Vlay50ZWNobm9sb2d5L3dwLWNvbnRlbnQvdXBsb2Fkcy8yMDE4LzA4L0lDODc5ODU5LmpwZyIsInRpdGxlIjoiQVNQLk5FVCBDb3JlIC0gV2hhdCdzIE5ldyBpbiBBU1AuTkVUIENvcmUgMi4xIiwic3VtbWFyeSI6Ik1pY3Jvc29mdCByZWNlbnRseSByZWxlYXNlZCBBU1AuTkVUIENvcmUgMi4xIGFsb25nIHdpdGggLk5FVCBDb3JlIDIuMSBhbmQgRW50aXR5IEZyYW1ld29yayAoRUYpIENvcmUgMi4xLiBDb21iaW5lZCwgdGhlc2UgcmVsZWFzZXMgb2ZmZXIgc29tZSBncmVhdCBpbXByb3ZlbWVudHMgaW4gcGVyZm9ybWFuY2UsIGFzIHdlbGwgYXMgYWRkaXRpb25hbCBmZWF0dXJlcyBmb3IgLk5FVCBDb3JlIGRldmVsb3BlcnMuIE1pY3Jvc29mdCBpcyBhbHNvIG9mZmVyaW5nIExvbmctVGVybSBTdXBwb3J0IChMVFMpIHdpdGggdGhpcyByZWxlYXNlLCBtZWFuaW5nIGl0IHdpbGwgcmVtYWluIHN1cHBvcnRlZCBmb3IgdGhyZWUgeWVhcnMuIFRoaXMgYXJ0aWNsZSBwcm92aWRlcyBhbiBvdmVydmlldyBvZiB0aGUgaW1wcm92ZW1lbnRzIGluIEFTUC5ORVQgQ29yZSAyLjEuIFRvIGxlYXJuIG1vcmUgYWJvdXQgd2hhdOKAmXMgbmV3IGluIEVGIENvcmUgMi4xLCBjaGVjayBvdXQgdGhpcyBtb250aOKAmXMgRGF0YSBQb2ludHMgY29sdW1uIGJ5IEp1bGllIExlcm1hbiwg4oCcRGVlcCBEaXZlIGludG8gRUYgQ29yZSBIYXNEYXRhIFNlZWRpbmfigJ0gYW5kIGhlciBjb2x1bW4gbGFzdCBtb250aCAobXNkbi5jb20vbWFnYXppbmUvbXQ4NDcxODQpIHRoYXQgIGRlbHZlcyBpbnRvIHRoZSBuZXcgRUYgQ29yZSAyLjEgUXVlcnkgVHlwZSBmZWF0dXJlLCB3aGljaCBsZXRzIHlvdSBtb3JlIGVhc2lseSBxdWVyeSBhIGRhdGFiYXNlIHdpdGhvdXQgbmVlZGluZyB0cnVlIGVudGl0aWVzIHdpdGgga2V5IHByb3BlcnRpZXMgdG8gY29uc3VtZSB0aGUgcmVzdWx0cy4iLCJ0ZW1wbGF0ZSI6ImRlZmF1bHQifQ==”]

  • .Net Core,  Microsoft

    Dotnet Core Templates, or DOTNET new -i “the magic”

    Time to touch on this topic again… because every time a new DOTNET SDK comes out I seem to lose the new templates. I understand the why, and ya I wish the .Net Core group would fix it. 

    The “why”- each time one updates to a new Core SDK, the template scaffolds get placed into a new folder (usually under your users directory in a annoying place like ….\.templateengine\dotnetcli\”version of sdk”\). So each time you move to a new DOTNET SDK, this becomes a problem.

    The second part of of DOTNET new -i that is an issue, is if you have different nuget repositories set in VS. It’s a great feature in VS 2017 where one can add additional package management sources… problem is with the DOTNET command line when you want to bring in new templates.

    So, why am I going on about this? Well as I move from SDK version to version… I would like the damn templates I’ve added to either get updated (the standard ones do), or at least make sure they are available to the new SDK….  How hard can it be….

    So here’s the list of what I keep installing from (dotnet Templates on github)

    Here’s my list:

    dotnet new -i “Microsoft.AspNetCore.SpaTemplates::*”    – this one always

    dotnet new -i “Boxed.Templates::*”  – I’m still undesided about boxed.

    dotnet new -i Microsoft.AspNetCore.Blazor.Templates::*  – nice little framework that has become a 1st class citizen in VS. Make sure you also check out the VS extension.

    dotnet new -i “RaspberryPi.Template::*” – who does not like Iot stuff. Also available in VS as a 1st class citizen.

    Update: So as we now have SDK version… 2.1.400 I notice that some of the SPA templates remain off the list…

    The SPA templates after SDK update:
    ASP.NET Core with Angular angular [C#] Web/MVC/SPA
    ASP.NET Core with React.js react [C#] Web/MVC/SPA
    ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA

    And the templates after the dotnet new -i of the SPA’s:

    ASP.NET Core with Aurelia aurelia [C#] Web/MVC/SPA
    ASP.NET Core with Knockout.js knockout [C#] Web/MVC/SPA
    ASP.NET Core with Vue.js vue [C#] Web/MVC/SPA
    ASP.NET Core with Angular angular [C#] Web/MVC/SPA
    ASP.NET Core with React.js react [C#] Web/MVC/SPA
    ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA

    The ones in bold seem to gone still…. oh well.