-
Port Desk Top UI App
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. .NET Blog | How to port desktop applications to .NET Core 3.0 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…
-
Using Kestrel for ASP Core Apps
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…
-
Example Use of class for HomeTown font
This is hometown. Made possible with UAF and a css class…. umm. Needs to be easier to use. SG
-
Code Plugin Example Problem
So here is the sample problem,… //This is C# code block // in C# we use Var of T which is express like X<T> // But as we see this creates a html tag that gets confused... as the plugin tries to close the <T> var X<T>; //generates an ending tag </T> // // Work around var X< T >; Or better yet use & lt ; // // var myvar<string>; Notice the ending miss placed tag…. <string>;</string></t></t> That should not be in the code block…. It should be var myvar<string>; {{var X}}
-
EF Migration tasks in the Program.cs – The good and the Ugly
Program.cs of any core project (especially ASP.Net Core) is our first starting point to get some necessary work out of the wrong. In this case EF DB Migrations. You know that EF thing where you keep your attached DB tables in sync with your data models? (or in some cases… mess up your existing database). Life in program.cs normally starts here: public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>(); } But let’s consider this: public class Program { public static async Task Main(string[] args) { IWebHost webHost = CreateWebHostBuilder(args).Build(); // Create a new scope using (var scope…
-
The SQL Server Windows credentialing to work with ASP.Core and other IIS Web Sites
So somewhere in the backwaters of connecting an IIS hosted web app (a.k.a ASP Core 2.x SPA like app that uses SQL Server as it’s data host), we find the secret not so secret way to wire up a Windows Credential for Database access. Write this down: IIS AppPool\DefaultAppPool or Generically IIS AppPool\<Name My Pool> We start here in IIS with our favorite App Pool- Now this one is just for example… an ASP Core app pool, of course, would have a No Managed Code like this: Either way, the SQL Windows credential set up is the same…. In SQL server the new login looks like this: Note the IIS…
-
App Registration Link
This seems to want to move me off to Azure… But for now the link still works… https://apps.dev.microsoft.com
-
Article: ASP.NET Core updates in .NET Core 3.0 Preview 2
ASP.NET Core updates in .NET Core 3.0 Preview 2
-
Play with dotnet tool and a BOT
I was poking about with cleaning up my DotNet Core sdks and in my travels a found this thing call dotnet tools… Let the experiment begin… To credit the source of an article on Microsoft go here: dotnet tool Do a console project with dotnet: dotnet new console -o botsay Then, of course, cd into the botsay directory… and edit the Program.cs (yeap you can do this in VS 2017) Here’s the main method: using System.Reflection; static void Main(string[] args) { if (args.Length == 0) { var versionString = Assembly.GetEntryAssembly() .GetCustomAttribute<AssemblyInformationalVersionAttribute>() .InformationalVersion .ToString(); Console.WriteLine($"botsay v{versionString}"); Console.WriteLine("-------------"); Console.WriteLine("\nUsage:"); Console.WriteLine(" botsay <message>"); return; } ShowBot(string.Join(' ', args)); } The ShowBot method is this:…
-
Getting Ready for Visual Studio 2019? We are at Preview 2
Looking at what is coming for Visual Studio 2019… It’s time to start looking and trying…. Visual Studio 2019 Preview 2 is now available The official source of product insight from the Visual Studio Engineering Team blogs.msdn.microsoft.com



