Using .NET Native AOT to build Windows WinAPI Dlls
Did you know that you can use .NET AOT compilation to create native Windows DLLs to potentially replace traditional C/C++ compiled DLLs? It's now possible to build completely native DLLs that can be...
View ArticleRevisiting C# Scripting with the Westwind.Scripting Templating Library, Part 1
This is a two part series that discusses the Westwind.Scripting Template libraryPart 1: An introduction to Template Scripting and how it works (this post)Part 2: Real world integration for Local...
View ArticlePutting the Westwind.Scripting C# Templating Library to work, Part 2
This is a two part series that discusses the Westwind.Scripting Template libraryPart 1: Revisiting C# Scripting with the Westwind.Scripting Templating LibraryPart 2: Real world integration for a Local...
View ArticleGetting the Client IP Address in ASP.NET Core
When I need to pick up the client IP Address in ASP.NET Core I always forget where to find the connection information.It's also useful to remember that if requests are proxied we need to return the...
View ArticleRunning ASP.NET Core Applications in an IIS Subfolder Application
ASP.NET Core applications by default want to run in a root folder - and to be fair that's the 99% use case. But there are those occasional situations where you want to run a Web site in a sub folder...
View ArticleLost ASP.NET Identity Cookies on IIS Application Pool Restarts
Last week I finally updated my blog and moved it to .NET 10 from the ancient WebForms based engine I built 20 years ago. The app is deployed onto a Windows server running IIS and I ran into a snag...
View ArticleCreating a Packaged Windows Single File Web Site Viewer Executable
This post falls squarely into the stupid pet tricks category, but I'm going to post about it anyway, because it was an interesting experiment in dynamically creating a single file, self-contained...
View ArticleCreating Dual Use Windows GUI and Console Applications
In my last post I described a WebPackageViewer tool tool that acts as a static Web site packager and self-contained Web site viewer all contained in a single Executable. One feature of this single...
View ArticleGetting Inherited Controller Routes to work in ASP.NET Core
By default ASP.NET applies Controller Attribute Routes on concrete types. If you create a Controller class, the class and its routes are automatically recognized by ASP.NET during the startup process....
View ArticleBack to Basics: JavaScript and Timezones
Classic native Date values in JavaScript are internally represented as UTC dates. However, when you display values they are by default shown as local date/time values. I've run into this recently...
View Article