TX Spell .NET for WPF

Installation and Package Restore

Topic

TX Spell .NET for WPF comes as NuGet packages that the setup provides in the package source Text Control Offline Packages, and as assemblies in the Assembly folder of the installation for .NET Framework projects. The packages aren't published on nuget.org. Most installation problems come from the package source, the target framework or the choice of package. Installation Guide describes the installation in full.

The Package Isn't Found

Visual Studio or dotnet restore doesn't find TXTextControl.TXSpell.WPF.SDK or TXTextControl.TXSpell.Core.SDK.

The packages aren't on nuget.org. The setup of TX Spell .NET adds them to the package source Text Control Offline Packages.

  1. Install the setup of the full version, TX Spell .NET for WPF 11.0 with SP1.exe, or of the trial version on the development machine. See Installing the Product.
  2. Choose Project > Manage NuGet Packages..., select Text Control Offline Packages as the package source, and search on the Browse tab.
  3. Install the package.

Configuring Package Sources describes the package sources.

The Package Doesn't Fit the Target Framework

The package installs without an error in a project for the .NET Framework, .NET 5, .NET 6 or .NET 7, but the build fails:

error CS0246: The type or namespace name 'TXTextControl' could not be found

The packages of version 11.0 contain assemblies for .NET 8 only, and NuGet adds no assembly reference in older projects; Only .NET 8 or Higher explains the behavior. The package of version 10.0 supported .NET 5, .NET 6 and .NET 7.

  1. Set the target framework of a .NET project to .NET 8 or higher, then rebuild.
  2. In a .NET Framework project, uninstall the package and reference TXSpell.dll and TXSpell.WPF.dll from the Assembly folder of the installation instead.

.NET and .NET Framework lists the supported versions.

The Spell Checker Class Is Missing

The package is installed, but the project doesn't know the TXSpellChecker of WPF or its dialog boxes.

TXTextControl.TXSpell.Core.SDK contains only TXSpell.dll, with the class TXSpell for code without a user interface. In a WPF application, install TXTextControl.TXSpell.WPF.SDK, which adds the TXSpellChecker with its dialogs and context menu. Package Overview compares the packages.

A Sample or an Old Project Doesn't Build

A sample from GitHub or a project written for an earlier version doesn't build after you installed version 11.0.

The project references the assemblies of version 10.0 or 11.0, sometimes with a path to the installation directory of an earlier version, or it uses packages of an earlier version.

  1. In a .NET Framework project, remove the references to the TX Spell .NET assemblies and add them again from the Assembly folder of your installation.
  2. In a .NET project, change the target framework to .NET 8 or higher, and update the packages to version 11.0.1.
  3. Rebuild the project.

Update an Older Sample describes the changes for the samples on GitHub, and Service Packs the update to Service Pack 1.