# Scott Hanselman's Blog

Scott Hanselman on Programming, User Experience, The Zen of Computers and Life in General

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Automatically Signing a Windows EXE with Azure Trusted Signing, dotnet sign, and GitHub Actions

DevFeed: [Automatically Signing a Windows EXE with Azure Trusted Signing, dotnet sign, and GitHub Actions](<https://devfeed.tech/articles/automatically-signing-a-windows-exe-with-azure-trusted-signing-dotnet-sign-and-github-actions-77775.md>)

Original publisher: [Read original article](<https://feeds.hanselman.com/~/930373259/0/scotthanselman~Automatically-Signing-a-Windows-EXE-with-Azure-Trusted-Signing-dotnet-sign-and-GitHub-Actions>)

Author: Scott Hanselman

Published: 2025-11-28T19:31:25Z

Content type: tutorial

Language: en

Sources: [Scott Hanselman's Blog](<https://devfeed.tech/sources/scott-hanselman-s-blog.md>)

Topics: [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Azure](<https://devfeed.tech/topics/azure.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>)

Tags: [azure](<https://devfeed.tech/tags/azure.md>), [dotnetcore](<https://devfeed.tech/tags/dotnetcore.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [sign](<https://devfeed.tech/tags/sign.md>), [signing](<https://devfeed.tech/tags/signing.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

Azure Trusted Signing can sign Windows executables locally with the .NET `sign` tool or automatically in GitHub Actions, avoiding hardware tokens and certificate file management. Setup requires an Azure subscription, identity validation, a Public Trust certificate profile, the region-specific endpoint, and the `Trusted Signing Certificate Profile Signer` role. Local signing uses Azure CLI device-code login with the code-signing scope; GitHub Actions uses a service principal, four repository secrets, Azure login, and `azure/trusted-signing-action`. The workflow must point to the actual build output and match account and profile names exactly. The author reports that regional endpoint mistakes, permissions, authentication, and file paths caused common failures. Certificates are described as short-lived (typically three days), with RFC 3161 timestamping preserving signature validity after expiry. The article estimates about $10 per month for small projects, says identity approval is required before signing, and notes that setup took the author roughly 60-75 minutes; timing and requirements may vary by region and account type.

### Source excerpt

Mac Tahoe (in Beta as of the time of this writing) has this new feature called Edge Light that basically puts a bright picture of an Edge Light around your screen and basically uses the power of OLED to give you a virtual ring light. So I was like, why can't we also have nice things? I wrote (vibed, with GitHub Copilot and Claude Sonnet 4.5) a Windows Edge Light App (source code at https://github.com/shanselman/WindowsEdgeLight and you can get the latest release here https://github.com/shanselman/WindowsEdgeLight/releases or the app will check for new releases and autoupdate with Updatum). However, as is with all suss loose executables on the internet, when you run random stuff you'll often get the Window Defender 'new phone, who dis' warning which is scary. After several downloads and no viruses or complaints, my executable will eventually gain reputation with the Windows Defender Smart Screen service, but having a Code Signing Certificate is said to help with that. However, code signing certs are expensive and a hassle to manage and renew. Someone told me that Azure Trusted Signing was somewhat less of a hassle - it's less, but it's still non-trivial. I read this post from Rick (his blog is gold and has been for years) earlier in the year and some of it was super useful and other stuff has been made simpler over time. I wrote 80% of this blog post, but since I just spent an hour getting code signing to work and GitHub Copilot was going through and logging everything I did, I did use Claude 4.5 to help organize some of this. I have reviewed it all and re-written parts I didn't like, so any mistakes are mine. Azure Trusted Signing is Microsoft's cloud-based code signing service that: No hardware tokens - Everything happens in the cloud Automatic certificate management - Certificates are issued and renewed automatically GitHub Actions integration - Sign during your CI/CD pipeline. I used GH Actions. Kinda Affortable - About $10/month for small projects. I would like

## Webcam randomly pausing in OBS, Discord, and websites - LSVCam and TikTok Studio

DevFeed: [Webcam randomly pausing in OBS, Discord, and websites - LSVCam and TikTok Studio](<https://devfeed.tech/articles/webcam-randomly-pausing-in-obs-discord-and-websites-lsvcam-and-tiktok-studio-77774.md>)

Original publisher: [Read original article](<https://feeds.hanselman.com/~/905963465/0/scotthanselman~Webcam-randomly-pausing-in-OBS-Discord-and-websites-LSVCam-and-TikTok-Studio>)

Author: Scott Hanselman

Published: 2024-10-09T19:32:28Z

Content type: article

Language: en

Sources: [Scott Hanselman's Blog](<https://devfeed.tech/sources/scott-hanselman-s-blog.md>)

Topics: [Device APIs](<https://devfeed.tech/topics/device-apis.md>), [webcam](<https://devfeed.tech/topics/webcam.md>), [win32](<https://devfeed.tech/topics/win32.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [browser-apis](<https://devfeed.tech/tags/browser-apis.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [capture](<https://devfeed.tech/tags/capture.md>), [device](<https://devfeed.tech/tags/device.md>), [logitech](<https://devfeed.tech/tags/logitech.md>), [obs](<https://devfeed.tech/tags/obs.md>), [usb](<https://devfeed.tech/tags/usb.md>), [webcam](<https://devfeed.tech/tags/webcam.md>), [websites](<https://devfeed.tech/tags/websites.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

The author traces intermittent webcam pauses in browsers and OBS to LSVCam, a virtual camera DLL installed with TikTok LIVE Studio. The post describes listing camera devices with PowerShell and JavaScript, then removing LSVCam's registry entry as a temporary workaround; the entry returns when TikTok Studio runs again.

### Source excerpt

I use my webcam constantly for streaming and I'm pretty familiar with all the internals and how the camera model on Windows works. I also use OBS extensively, so I regularly use the OBS virtual camera and flow everything through Open Broadcasting Studio. For my podcast, I use Zencastr which is a web-based app that talks to the webcam via the browser APIs. For YouTubes, I'll use Riverside or StreamYard, also webapps. I've done this reliably for the last several years without any trouble. Yesterday, I started seeing the most weird thing and it was absolutely perplexing and almost destroyed the day. I started seeing regular pauses in my webcam stream but only in two instances. The webcam would pause for 10-15 seconds every 90 or so seconds when access the Webcam in a browser I would see a long pause/hang in OBS when double clicking on my Video Source (Webcam) to view its properties Micah initially said USB but my usb bus and hubs have worked reliably for years. Thought something might have changed in my El Gato capture device, but that has also been rock solid for 1/2 a decade. Then I started exploring virtual cameras and looked in the windows camera dialog under settings for a list of all virtual cameras. Interestingly, virtual cameras don't get listed under Cameras in Settings in Windows: From what I can tell, there's no user interface to list out all of your cameras - virtual or otherwise - in windows. Here's a quick PowerShell script you can run to list out anything 'connected' that also includes the string "cam" in your local devices Get-CimInstance -Namespace root\cimv2 -ClassName Win32_PnPEntity | Where-Object { $_.Name -match 'Cam' } | Select-Object Name, Manufacturer, PNPDeviceID and my output Name Manufacturer PNPDeviceID ---- ------------ ----------- Cam Link 4K Microsoft USB\VID_0FD9&PID_0066&MI_00\7&3768531A&0&0000 Digital Audio Interface (2- Cam Link 4K) Microsoft SWD\MMDEVAPI\{0.0.1.00000000}.{AF1690B6-CA2A-4AD3-AAFD-8DDEBB83DD4A} Logitech StreamCam WinU

## Open Sourcing DOS 4

DevFeed: [Open Sourcing DOS 4](<https://devfeed.tech/articles/open-sourcing-dos-4-77773.md>)

Original publisher: [Read original article](<https://feeds.hanselman.com/~/882544025/0/scotthanselman~Open-Sourcing-DOS>)

Author: Scott Hanselman

Published: 2024-04-25T16:46:13Z

Content type: release

Language: en

Sources: [Scott Hanselman's Blog](<https://devfeed.tech/sources/scott-hanselman-s-blog.md>)

Topics: [Open Source](<https://devfeed.tech/topics/open-source.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>)

Tags: [8086](<https://devfeed.tech/tags/8086.md>), [assembly](<https://devfeed.tech/tags/assembly.md>), [beta](<https://devfeed.tech/tags/beta.md>), [binaries](<https://devfeed.tech/tags/binaries.md>), [dos](<https://devfeed.tech/tags/dos.md>), [ibm](<https://devfeed.tech/tags/ibm.md>), [license](<https://devfeed.tech/tags/license.md>), [mit](<https://devfeed.tech/tags/mit.md>), [ms-dos](<https://devfeed.tech/tags/ms-dos.md>), [open](<https://devfeed.tech/tags/open.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [operating-system](<https://devfeed.tech/tags/operating-system.md>), [release](<https://devfeed.tech/tags/release.md>), [source](<https://devfeed.tech/tags/source.md>), [source-code](<https://devfeed.tech/tags/source-code.md>)

### AI overview

Microsoft, partnering with IBM, released MS-DOS 4.00 source code under the MIT license, along with early unreleased DOS 4.0 beta binaries, scanned documentation, and disk images. The release grew from researcher Connor Hyde's work documenting links between DOS 4, Multitasking DOS, and OS/2, and binaries found among Ray Ozzie's disks; archival searches found MS-DOS 4.00 but not the full MT-DOS source. Microsoft says it may update the release if further material is discovered. The article reports successful runs on an IBM PC XT, a Pentium, and in the PCem and 86box emulators.

### Source excerpt

See the canonical version of this blog post at the Microsoft Open Source Blog! Ten years ago, Microsoft released the source for MS-DOS 1.25 and 2.0 to the Computer History Museum, and then later republished them for reference purposes. This code holds an important place in history and is a fascinating read of an operating system that was written entirely in 8086 assembly code nearly 45 years ago. Today, in partnership with IBM and in the spirit of open innovation, we're releasing the source code to MS-DOS 4.00 under the MIT license. There's a somewhat complex and fascinating history behind the 4.0 versions of DOS, as Microsoft partnered with IBM for portions of the code but also created a branch of DOS called Multitasking DOS that did not see a wide release. https://github.com/microsoft/MS-DOS A young English researcher named Connor "Starfrost" Hyde recently corresponded with former Microsoft Chief Technical Officer Ray Ozzie about some of the software in his collection. Amongst the floppies, Ray found unreleased beta binaries of DOS 4.0 that he was sent while he was at Lotus. Starfrost reached out to the Microsoft Open Source Programs Office (OSPO) to explore releasing DOS 4 source, as he is working on documenting the relationship between DOS 4, MT-DOS, and what would eventually become OS/2. Some later versions of these Multitasking DOS binaries can be found around the internet, but these new Ozzie beta binaries appear to be much earlier, unreleased, and also include the ibmbio.com source. Scott Hanselman, with the help of internet archivist and enthusiast Jeff Sponaugle, has imaged these original disks and carefully scanned the original printed documents from this "Ozzie Drop". Microsoft, along with our friends at IBM, think this is a fascinating piece of operating system history worth sharing. Jeff Wilcox and OSPO went to the Microsoft Archives, and while they were unable to find the full source code for MT-DOS, they did find MS DOS 4.00, which we're releasing to

## Updating to .NET 8, updating to IHostBuilder, and running Playwright Tests within NUnit headless or headed on any OS

DevFeed: [Updating to .NET 8, updating to IHostBuilder, and running Playwright Tests within NUnit headless or headed on any OS](<https://devfeed.tech/articles/updating-to-net-8-updating-to-ihostbuilder-and-running-playwright-tests-within-nunit-headless-or-headed-on-any-os-77772.md>)

Original publisher: [Read original article](<https://feeds.hanselman.com/~/873234002/0/scotthanselman~Updating-to-NET-updating-to-IHostBuilder-and-running-Playwright-Tests-within-NUnit-headless-or-headed-on-any-OS>)

Author: Scott Hanselman

Published: 2024-03-07T01:12:13Z

Content type: tutorial

Language: en

Sources: [Scott Hanselman's Blog](<https://devfeed.tech/sources/scott-hanselman-s-blog.md>)

Topics: [Playwright](<https://devfeed.tech/topics/playwright.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [ASP.NET](<https://devfeed.tech/topics/aspnet.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>)

Tags: [asp-net](<https://devfeed.tech/tags/asp-net.md>), [automation](<https://devfeed.tech/tags/automation.md>), [browser](<https://devfeed.tech/tags/browser.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [dotnetcore](<https://devfeed.tech/tags/dotnetcore.md>), [net](<https://devfeed.tech/tags/net.md>), [nunit](<https://devfeed.tech/tags/nunit.md>), [playwright](<https://devfeed.tech/tags/playwright.md>)

### AI overview

The article describes upgrading a .NET site to .NET 8 and adapting its host setup so NUnit tests can start the web application in TestHost. It demonstrates running Playwright browser integration tests across operating systems, in containers, and in CI, and explains a content-root workaround involving the MvcTesting package.

### Source excerpt

I've been doing not just Unit Testing for my sites but full on Integration Testing and Browser Automation Testing as early as 2007 with Selenium. Lately, however, I've been using the faster and generally more compatible Playwright. It has one API and can test on Windows, Linux, Mac, locally, in a container (headless), in my CI/CD pipeline, on Azure DevOps, or in GitHub Actions. For me, it's that last moment of truth to make sure that the site runs completely from end to end. I can write those Playwright tests in something like TypeScript, and I could launch them with node, but I like running end unit tests and using that test runner and test harness as my jumping off point for my .NET applications. I'm used to right clicking and "run unit tests" or even better, right click and "debug unit tests" in Visual Studio or VS Code. This gets me the benefit of all of the assertions of a full unit testing framework, and all the benefits of using something like Playwright to automate my browser. In 2018 I was using WebApplicationFactory and some tricky hacks to basically spin up ASP.NET within .NET (at the time) Core 2.1 within the unit tests and then launching Selenium. This was kind of janky and would require to manually start a separate process and manage its life cycle. However, I kept on with this hack for a number of years basically trying to get the Kestrel Web Server to spin up inside of my unit tests. I've recently upgraded my main site and podcast site to .NET 8. Keep in mind that I've been moving my websites forward from early early versions of .NET to the most recent versions. The blog is happily running on Linux in a container on .NET 8, but its original code started in 2002 on .NET 1.1. Now that I'm on .NET 8, I scandalously discovered (as my unit tests stopped working) that the rest of the world had moved from IWebHostBuilder to IHostBuilder five version of .NET ago. Gulp. Say what you will, but the backward compatibility is impressive. As such my code for Progr

## Using WSL and Let's Encrypt to create Azure App Service SSL Wildcard Certificates

DevFeed: [Using WSL and Let's Encrypt to create Azure App Service SSL Wildcard Certificates](<https://devfeed.tech/articles/using-wsl-and-let-s-encrypt-to-create-azure-app-service-ssl-wildcard-certificates-77771.md>)

Original publisher: [Read original article](<https://feeds.hanselman.com/~/749206136/0/scotthanselman~Using-WSL-and-Lets-Encrypt-to-create-Azure-App-Service-SSL-Wildcard-Certificates>)

Author: Scott Hanselman

Published: 2023-06-27T17:17:25Z

Content type: tutorial

Language: en

Sources: [Scott Hanselman's Blog](<https://devfeed.tech/sources/scott-hanselman-s-blog.md>)

Topics: [let's encrypt](<https://devfeed.tech/topics/let-s-encrypt.md>), [certificates](<https://devfeed.tech/topics/certificates.md>), [Azure](<https://devfeed.tech/topics/azure.md>)

Tags: [azure](<https://devfeed.tech/tags/azure.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [let-s-encrypt](<https://devfeed.tech/tags/let-s-encrypt.md>), [wildcard](<https://devfeed.tech/tags/wildcard.md>), [wsl](<https://devfeed.tech/tags/wsl.md>)

### AI overview

The article describes a manual route to install a Let's Encrypt wildcard certificate on Azure App Service: use Certbot in WSL with DNS validation, create a PFX from the private key and full chain, then copy it into Windows and import and re-export it as a password-protected PFX. The stated App Service requirements are triple DES encryption, a private key of at least 2048 bits, and a chain containing intermediates and the root; Windows re-export is suggested to meet them. Finally, upload the PFX under Bring Your Own Cert and bind it to the custom domain. The author notes that DNS validation and certificate creation are manual, and says a more automated approach may come later.

### Source excerpt

There are many let's encrypt automatic tools for azure but I also wanted to see if I could use certbot in wsl to generate a wildcard certificate for the azure Friday website and then upload the resulting certificates to azure app service. Azure app service ultimately needs a specific format called dot PFX that includes the full certificate path and all intermediates. Per the docs, App Service private certificates must meet the following requirements: Exported as a password-protected PFX file, encrypted using triple DES. Contains private key at least 2048 bits long Contains all intermediate certificates and the root certificate in the certificate chain. If you have a PFX that doesn't meet all these requirements you can have Windows reencrypt the file. I use WSL and certbot to create the cert, then I import/export in Windows and upload the resulting PFX. Within WSL, install certbot: sudo apt update sudo apt install python3 python3-venv libaugeas0 sudo python3 -m venv /opt/certbot/ sudo /opt/certbot/bin/pip install --upgrade pip sudo /opt/certbot/bin/pip install certbot Then I generate the cert. You'll get a nice text UI from certbot and update your DNS as a verification challenge. Change this to make sure it's two lines, and your domains and subdomains are correct and your paths are correct. sudo certbot certonly --manual --preferred-challenges=dns --email YOUR@EMAIL.COM --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --manual-public-ip-logging-ok -d "azurefriday.com" -d "*.azurefriday.com" sudo openssl pkcs12 -export -out AzureFriday2023.pfx -inkey /etc/letsencrypt/live/azurefriday.com/privkey.pem -in /etc/letsencrypt/live/azurefriday.com/fullchain.pem I then copy the resulting file to my desktop (check your desktop path) so it's now in the Windows world. sudo cp AzureFriday2023.pfx /mnt/c/Users/Scott/OneDrive/Desktop Now from Windows, import the PFX, note the thumbprint and export that cert. Import-PfxCertificate -FilePath "AzureFriday2023.pfx" -

## GitHub Copilot for CLI for PowerShell

DevFeed: [GitHub Copilot for CLI for PowerShell](<https://devfeed.tech/articles/github-copilot-for-cli-for-powershell-77770.md>)

Original publisher: [Read original article](<https://feeds.hanselman.com/~/737271731/0/scotthanselman~GitHub-Copilot-for-CLI-for-PowerShell>)

Author: Scott Hanselman

Published: 2023-04-25T15:31:49Z

Content type: tutorial

Language: en

Sources: [Scott Hanselman's Blog](<https://devfeed.tech/sources/scott-hanselman-s-blog.md>)

Topics: [GitHub Copilot CLI](<https://devfeed.tech/topics/github-copilot-cli.md>), [PowerShell](<https://devfeed.tech/topics/powershell.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [aliases](<https://devfeed.tech/tags/aliases.md>), [bash](<https://devfeed.tech/tags/bash.md>), [cli](<https://devfeed.tech/tags/cli.md>), [command](<https://devfeed.tech/tags/command.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [command-line-interface](<https://devfeed.tech/tags/command-line-interface.md>), [commands](<https://devfeed.tech/tags/commands.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [github-copilot-cli](<https://devfeed.tech/tags/github-copilot-cli.md>), [github-next](<https://devfeed.tech/tags/github-next.md>), [powershell](<https://devfeed.tech/tags/powershell.md>), [prompt](<https://devfeed.tech/tags/prompt.md>)

### AI overview

The author adapts GitHub Copilot for CLI for PowerShell by routing three aliases--`??`, `git?`, and `gh?`--to `github-copilot-cli` subcommands. The `??` alias adds "use powershell to" to the request; each alias asks the CLI to write output to a temporary file, reads it, runs it with `Invoke-Expression`, and removes the file. The author says the approach is imperfect and notes possible future variants for Bash or WSL; the excerpt does not establish that those variants were implemented.

### Source excerpt

GitHub Next has this cool project that is basically Copilot for the CLI (command line interface). You can sign up for their waitlist at the Copilot for CLI site. Copilot for CLI provides three shell commands: ??, git? and gh? This is cool and all, but I use PowerShell. Turns out these ?? commands are just router commands to a larger EXE called github-copilot-cli. So if you go "?? something" you're really going "github-copilot-cli what-the-shell something." So this means I should be able to to do the same/similar aliases for my PowerShell prompt AND change the injected prompt (look at me I'm a prompt engineer) to add 'use powershell to.' Now it's not perfect, but hopefully it will make the point to the Copilot CLI team that PowerShell needs love also. Here are my aliases. Feel free to suggest if these suck. Note the addition of "user powershell to" for the ?? one. I may make a ?? and a p? where one does bash and one does PowerShell. I could also have it use wsl.exe and shell out to bash. Lots of possibilities. function ?? { $TmpFile = New-TemporaryFile github-copilot-cli what-the-shell ('use powershell to ' + $args) --shellout $TmpFile if ([System.IO.File]::Exists($TmpFile)) { $TmpFileContents = Get-Content $TmpFile if ($TmpFileContents -ne $nill) { Invoke-Expression $TmpFileContents Remove-Item $TmpFile } } } function git? { $TmpFile = New-TemporaryFile github-copilot-cli git-assist $args --shellout $TmpFile if ([System.IO.File]::Exists($TmpFile)) { $TmpFileContents = Get-Content $TmpFile if ($TmpFileContents -ne $nill) { Invoke-Expression $TmpFileContents Remove-Item $TmpFile } } } function gh? { $TmpFile = New-TemporaryFile github-copilot-cli gh-assist $args --shellout $TmpFile if ([System.IO.File]::Exists($TmpFile)) { $TmpFileContents = Get-Content $TmpFile if ($TmpFileContents -ne $nill) { Invoke-Expression $TmpFileContents Remove-Item $TmpFile } } } It also then offers to run the command. Very smooth. Hope you like it. Lots of fun stuff happening in this space.