RSSAmplifier

Blog

dotMorten

.NET Ramblings, XAML hacking and some GIS endeavors

sharpgis.netRSS feed ↗3 posts

Latest posts

Building a Windows Tray App by combining Microsoft.UI.Reactor and a Worker Project

I wanted a small Windows app that lives in the tray instead of the taskbar, and minimizes/closes to the tray. This can be useful for building small service apps, while having a UI you can occasionally access to control settings etc. Here is the full process for setting that up step by step. 1. Start with a Worker project I started with the standard worker template. In a new project folder, create…

File-based WinUI apps with Microsoft.UI.Reactor

One of the things I've been wanting to try for a while was whether Reactor could work nicely with .NET file-based apps . Turns out: it can. The idea is pretty simple. Instead of creating a full project, you put everything in a single App.cs file, add a few #: directives at the top, and run it directly with `dotnet run`. The smallest example Here's a complete Reactor app in one file: #:property…

Your first Microsoft.UI.Reactor app

Now that Microsoft.UI.Reactor and the project templates are on NuGet.org, getting started is a LOT simpler than it used to be. If you want the absolute shortest path to a running app, it's really just this (assuming you already installed the .NET SDK): dotnet new install Microsoft.UI.Reactor.ProjectTemplates dotnet new reactorapp dotnet run -a x64 That's it! So let's take a quick look at what…