Skip to content

About

Windows based GUI tool for managing SharePoint Term Store items.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SharePoint Term Store Manager

A WinUI 3 desktop app for managing the SharePoint Online term store, built to be friendlier than the term store admin page in the SharePoint admin center.

Important

Disclaimer: This application is being built with AI-generated code. If you prefer not to use AI-generated software, please do not proceed.

About

I got fed up with not having the ability to search for terms when doing merge actions... So here we are. Anyway, this desktop application replicates all of the functionality of the Web based term store manager but with some additional improvements and tools. Aside from the afformentioned search when merging, the app can also export selected or all term groups into multiple formats. Finally, since I have been working with Power Automate a lot lately, there is also an easily copied term|guid string for use in different actions. I'll probably add more features to the application as needed. Okay byeeeeeee!

How it talks to SharePoint

The app uses SharePoint CSOM (Microsoft.SharePoint.Client.Taxonomy). It is the only supported API that covers CRUD, merge, reuse and deprecate without an app registration.

Sign-in uses Microsoft's public SharePoint Online Management Shell client, the same approach the SharePoint Search Explorer app and SharePoint's own PowerShell module use, so no app registration is needed. Microsoft doesn't support using that client from other apps, and could restrict it in future. If your organization blocks it, or provides its own app registration, enter that app's client ID under Advanced in the profile.

Your account needs term store permissions (term store admin, or group manager/contributor) to make changes. SharePoint Online only; SharePoint Server (on-premises) is not supported.

Build and run

Requirements: Windows 10 1809 or later, the .NET 8 SDK (or later), and the Microsoft Edge WebView2 Runtime (installed with Windows 11).

dotnet build SharePointTermStoreManager/SharePointTermStoreManager.csproj

The build output runs as is; there is no installer. Settings, the sign-in session and the encrypted token cache are kept in %LOCALAPPDATA%\SharePointTermStoreManager. Settings › About › Reset app to defaults signs out and removes every profile, clears the sign-in session and restores all settings; the operations log is kept unless you choose to delete it too.

Updates

Settings › About › Check for updates (and, unless turned off, every start) asks GitHub for the latest release of dontthroworanges/SharePointTermStoreManager. If its tag (e.g. v0.2.0) is newer than the app's <Version>, the release's .zip is downloaded in the background to %LOCALAPPDATA%\SharePointTermStoreManager\Updates, checked against GitHub's SHA-256 digest, extracted, and offered for install. Installing closes the app and hands over to the launcher from the new release, which replaces the app folder (keeping the old one as app.old until the new one is in place), updates the launcher, and starts the new version. If the app's folder needs admin rights, Windows asks for them. Only a copy running from a release folder (the launcher with app\ beside it) can update itself; a build from bin\ can't.

Continuous integration and releases

Build

GitHub Actions (.github/workflows/build.yml) builds the release .zip on every push to main and every pull request. Each run's .zip can be downloaded from the run's Artifacts section on the Actions tab for 14 days.

To publish a release:

  1. Bump <Version> in the csproj (e.g. 1.3.0) and commit it to main.
  2. Tag that commit v<Version> and push the tag:
    git tag v1.3.0
    git push origin v1.3.0
    

The workflow builds the .zip, checks the tag matches <Version> (it stops if not), and creates a GitHub release with SharePointTermStoreManager-win-x64.zip attached and notes generated from the commits. Installed copies pick it up on their next update check. A tag with a suffix, such as v1.3.0-beta.1, makes a pre-release, which the update check ignores.

To build the same release locally (also the VS Code publish task):

./build/publish.ps1 -Zip

This produces the release folder and its .zip (-Runtime win-x86 or win-arm64 for other architectures):

publish/
  SharePointTermStoreManager-win-x64.zip     what a release carries
  win-x64/SharePointTermStoreManager/
    SharePointTermStoreManager.exe           the launcher: run this
    app/                                     the app and all its runtime files
      SharePointTermStoreManager.exe

If you attach a .zip to a release by hand, keep its name: the updater picks the asset ending in its architecture (-win-x64.zip, -win-arm64.zip, …).

Project layout

Folder What it is
SharePointTermStoreManager/ The WinUI 3 app.
SharePointTermStoreManager.Launcher/ The small .exe at the top of the release folder. It starts app\SharePointTermStoreManager.exe and installs updates. It targets .NET Framework 4.7.2, which Windows includes, so it needs no runtime of its own.
build/ publish.ps1, which builds the release folder and .zip.
design/ The app icon's source and the script that builds AppIcon.ico.

Install options

The app is a portable folder that runs from anywhere, with nothing to install: extract the .zip and run SharePointTermStoreManager.exe at its top. Keep the app folder next to it. To add the app to the Start menu, turn on Settings › About › Show in the Start menu. This creates a shortcut for your account only, without admin rights. The app keeps the shortcut pointing at itself after it updates or moves. Don't rename app\SharePointTermStoreManager.exe: a WinUI app finds its resources by its own file name.

About

Windows based GUI tool for managing SharePoint Term Store items.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages