Microsoft – ScottGeek Technology https://scottgeek.technology Fri, 17 Apr 2020 15:59:26 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 The Getting started with Xamarin and matters Virtual https://scottgeek.technology/2019/06/24/the-getting-started-with-xamarin-and-matters-virtual/ https://scottgeek.technology/2019/06/24/the-getting-started-with-xamarin-and-matters-virtual/#respond Mon, 24 Jun 2019 14:44:14 +0000 https://scottgeek.technology/?p=5058 The main landing that I can’t ever seem to remember to start with is actually here:

Installing and Setting Up Xamarin.Android – Xamarin

Installing and Setting Up Xamarin.Android – Xamarin

How to install and configure Xamarin.Android to work with Visual Studio.

Source: docs.microsoft.com/en-us/xamarin/android/get-started/installation/

The next important part is when you are setting up HAXM (for intel based chips)

From a cmd window.

sc query intelhaxm  (and if it is not already installed go here HAXM Release on GitHub

sc stop intelhaxm – to stop the service
sc start intelhaxm – to start the service

You can also use Hyper-V (sometimes I have issue with this method because it likes to mess about with my wifi/lan connections- that’s sometimes not a pretty sight in Windows 10).

]]>
https://scottgeek.technology/2019/06/24/the-getting-started-with-xamarin-and-matters-virtual/feed/ 0
Port Desk Top UI App https://scottgeek.technology/2019/03/03/port-desk-top-ui-app/ https://scottgeek.technology/2019/03/03/port-desk-top-ui-app/#respond Sun, 03 Mar 2019 20:35:53 +0000 https://scottgeek.technology/?p=1843 Not really ready for prime time , but here’s an article stepping through the how-to and the workaround for the fact that Core has yet to add the visual designer for, ya you guessed the actual Windows Form- that seems to be a rather glaring miss if we are talking about porting and doing traditional windows UI forms development going forward.

In this post, I will describe how to port a desktop application from .NET Framework to .NET Core. I picked a WinForms application as an example. Steps for WPF application are similar and I?ll describe what needs to be done different for WPF as we go.

 

]]>
https://scottgeek.technology/2019/03/03/port-desk-top-ui-app/feed/ 0
Using Kestrel for ASP Core Apps https://scottgeek.technology/2019/03/03/using-kestrel-for-asp-core-apps/ https://scottgeek.technology/2019/03/03/using-kestrel-for-asp-core-apps/#respond Sun, 03 Mar 2019 18:04:30 +0000 https://scottgeek.technology/?p=1736 As I was looking about with some of the Core 2.2 notes, I came across some interesting notes on how to tweak about with Kestrel settings….

I’m not sure I like putting Kestrel options up the in the Main Program builder. I tend to prefer these to collect in the startup class, but I get point of why Kestrel needs to be handled close to the Builder (it is after all the html service handling web calls).

Shall we begin…
So up in program.cs we do our normal Web Host Builder:

public class Program
{
    public static void Main(string[] args)
    {
        var host = CreateWebHostBuilder(args).Build();

        MigrateDatabase(host);

        host.Run();
        //CreateWebHostBuilder(args).Build().Run();
    }

    private static void MigrateDatabase(IWebHost host)
    {
        using (var scope = host.Services.CreateScope())
        {
            var db = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
            db.Database.Migrate();
        }
    }

    public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
        WebHost.CreateDefaultBuilder(args)
            .UseStartup<Startup>();
}

This tends to be my way of doing Program.cs. Note I split out the Build part into a static method (the normal default way is to have one fluent state that does a build and run in single line- it’s that commented line in the Main method) 

public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup$lt;Startup>()
                .ConfigureKestrel(opts =>
                {
                    opts.Limits.MaxConcurrentConnections = 100;

                });

 In my example, the method I push Kestrel setting to would of course have the .ConfigureKestrel with it’s options settings… 

Check it out… lots of interesting tweaks on settings…

You will find some details here on MS DOCS:

Learn about Kestrel, the cross-platform web server for ASP.NET Core.

 

]]>
https://scottgeek.technology/2019/03/03/using-kestrel-for-asp-core-apps/feed/ 0
Good things coming to EF Core 2.2 https://scottgeek.technology/2018/09/17/good-things-coming-to-ef-core-2-2/ https://scottgeek.technology/2018/09/17/good-things-coming-to-ef-core-2-2/#respond Mon, 17 Sep 2018 12:13:57 +0000 https://scottgeek.technology/?p=746 I noticed some interesting matters coming to the EF Core. Having access to additional Databases, what’s not to like about that? From the check it department… 

 

]]>
https://scottgeek.technology/2018/09/17/good-things-coming-to-ef-core-2-2/feed/ 0
From the Dot Net Config some Good Web Sites to check out. https://scottgeek.technology/2018/09/13/from-the-dot-net-config-some-good-web-sites-to-check-out/ https://scottgeek.technology/2018/09/13/from-the-dot-net-config-some-good-web-sites-to-check-out/#respond Thu, 13 Sep 2018 20:53:19 +0000 https://scottgeek.technology/?p=742 So in the travels about with the .Net Conf this week check out some site:

 

Awesome .NET open source & community resources

 And…

BuiltWithDot.Net is a community showcase of projects built with .net framework, .net core, xamarin, mono, mono game, unity, or godot. Anyone can submit.
 

And… 

 

]]>
https://scottgeek.technology/2018/09/13/from-the-dot-net-config-some-good-web-sites-to-check-out/feed/ 0
Did you say Free Pipelines? https://scottgeek.technology/2018/09/10/did-you-say-free-pipelines/ https://scottgeek.technology/2018/09/10/did-you-say-free-pipelines/#respond Mon, 10 Sep 2018 23:07:33 +0000 https://scottgeek.technology/?p=737 Who doesn’t like FREE… I may need to have a second like at Azure Pipelines…. on YES!

With the introduction of Azure DevOps today, we?re offering developers a new CI/CD service called Azure Pipelines that enables you to continuously build, test, and deploy to any platform or cloud.

 

]]>
https://scottgeek.technology/2018/09/10/did-you-say-free-pipelines/feed/ 0
Blazor and EF Core to Nowhere land. https://scottgeek.technology/2018/08/03/blazor-and-ef-core-to-nowhere-land/ https://scottgeek.technology/2018/08/03/blazor-and-ef-core-to-nowhere-land/#respond Fri, 03 Aug 2018 12:25:53 +0000 https://scottgeek.technology/?p=684 In the long decent into “Experimental” frameworks- this one being Blazor, I’ve been finding some challenges with getting Blazor to work with the latest EF Core. There’s a few examples of Blazor being used with EF Core (i.e. the CRUD example that’s floating around the inter-Tubes), but nothing that seems to work with the latest Blazor Lang template in the latest VS release.

One can go to a lower EF Core version, well mostly… I’ve yet to get my Blazor Hosted Core test app to compile…. let alone the DB-Context to Scaffold… it just spews errors no matter which direction I go in… Oh Bother….

I have to remember that Blazor is “Experimental” – But it would be nice if would keep up with the forward moving components like EF Core and the latest VS releases. I wonder what all of the Blazor Template releases are doing- seems like each time I run up VS there’s a new Blazor Lang Update. Curious…   

]]>
https://scottgeek.technology/2018/08/03/blazor-and-ef-core-to-nowhere-land/feed/ 0