# Installation and Package Restore

> Fix restore problems of TXTextControl.TextControl.WPF.SDK: the offline package source, private feed credentials, .NET 8 targets, build servers and updates.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Troubleshooting > Installation and Package Restore
- **1546 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/troubleshooting/installation/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/troubleshooting/installation/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/troubleshooting/installation/llms-full.txt

---

Before a project builds, the NuGet package `TXTextControl.TextControl.WPF.SDK` has to be found and restored, and it has to fit the target framework of the project. The package isn't published on nuget.org: it comes from the package source **Text Control Offline Packages**, which the setup installs, or from the Text Control Private NuGet Feed. Most installation problems come from one of these sources, and the sections below go through them. [NuGet Packages](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/nuget/llms-full.txt) describes the package and its sources in full.

### The Package Isn't Found

Visual Studio or `dotnet restore` doesn't find `TXTextControl.TextControl.WPF.SDK`.

The package isn't on nuget.org. It is in the package source **Text Control Offline Packages**, which the setup of TX Text Control .NET for WPF installs in *C:\\Program Files (x86)\\Text Control GmbH\\NuGetPackages*, and on the Text Control Private NuGet Feed.

1. Install the setup of the full or trial version on the development machine, if it isn't installed. See [Installing the Product](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/setup/llms-full.txt).
2. In **Manage NuGet Packages**, select **Text Control Offline Packages** as the package source, or the source of the private feed.
3. Install the package again.

### Text Control Offline Packages Isn't a Package Source

The list of package sources in Visual Studio has no entry **Text Control Offline Packages**, or the .NET CLI doesn't find the package that Visual Studio finds.

The setup registers the package source on the machine it installs on. On a machine without the setup, the source doesn't exist, and a build outside Visual Studio reads only the sources of its *nuget.config* files.

1. Install the setup on the machine, or add the folder of the offline packages to the *nuget.config* of the project:

    ```xml
    <configuration>
      <packageSources>
        <add key="TextControlLocal" value="C:\Program Files (x86)\Text Control GmbH\NuGetPackages" />
      </packageSources>
    </configuration>
    ```
2. Restore the packages again.

[Configuring Package Sources](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/nuget/sources/llms-full.txt) shows the complete file.

### Visual Studio Doesn't Use the Private Feed

You copied your personal *nuget.config* into the project, but Visual Studio doesn't offer the private feed.

Visual Studio doesn't always pick up a *nuget.config* that you add to a project.

1. Choose **Tools** > **NuGet Package Manager** > **Package Manager Settings**, then **Configuration Files**.
2. Open the configuration file, replace its content with the content of your downloaded *nuget.config*, and save it.
3. In **Manage NuGet Packages**, select the package source **TextControl**.

The blog article [Text Control Private NuGet Feed](https://www.textcontrol.com/blog/2026/02/09/text-control-private-nuget-feed/) describes the feed.

### The Private Feed Doesn't List the Package

The private feed accepts your credentials, but `TXTextControl.TextControl.WPF.SDK` isn't in its list of packages.

The feed shows only the packages and versions of the products that are assigned to you as a developer. Without a license of TX Text Control .NET for WPF assigned to you, its package isn't listed.

1. List the packages the feed offers you:

    ```bash
    dotnet package search "TXTextControl" --source TextControl
    ```
2. If the package is missing, ask the owner of your Text Control account to assign a serial number of TX Text Control .NET for WPF to you.
3. Download your *nuget.config* again after the assignment.

### The Private Feed Rejects Your Credentials

Restoring from the private feed fails because the feed refuses your credentials.

The API token in your *nuget.config* has expired or was deleted. How long a token is valid, and when it is deleted, is described in [Text Control Private NuGet Feed](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/nuget/sources/#text-control-private-nuget-feed).

1. Ask the owner of your Text Control account to assign a serial number to you again, which extends the token, or to create a new token under **Manage API tokens**.
2. Download the new *nuget.config*, or replace the token in your existing file and in the secrets of your build servers.

### The Package Doesn't Fit the Target Framework

The package can't be installed in the project, or the project doesn't build after an update of the package.

Since version 33.0, the package can be installed only in projects that target .NET 8 or higher; [.NET and .NET Framework](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/requirements/dotnet/llms-full.txt) lists the frameworks of earlier versions. A project on the .NET Framework doesn't use the package at all: it references the assemblies that the setup installs in its *Assembly* folder.

1. Set the target framework of a .NET project to `net8.0-windows` or higher.
2. For a project on the .NET Framework, remove the package and reference the assemblies of the setup instead, as [Create a .NET Framework Application](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/getting-started/document-editor/dotnet-framework/llms-full.txt) shows.

### Packages Don't Restore on a Build Server

A build server or a CI/CD pipeline fails to restore the package, while the build works on your machine.

Your personal *nuget.config* with the credentials of the private feed isn't part of the repository, and the build server has no setup and no offline packages.

Store the credentials of the feed as secrets of the pipeline, write *nuget.config* from them before the restore step, and build on a Windows agent. [Build With the Private Feed](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/licensing/build-servers/#build-with-the-private-feed) shows the steps, and [CI/CD](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/deployment/ci-cd/llms-full.txt) a complete workflow.

### The Project Still Uses the Old Service Pack

You installed a new service pack, but your application still runs with the previous one.

The project keeps the package version it references. The setup of a service pack adds the new package version to **Text Control Offline Packages**, but doesn't update your projects.

1. In **Manage NuGet Packages**, open **Updates** and update `TXTextControl.TextControl.WPF.SDK`, or run:

    ```bash
    dotnet add package TXTextControl.TextControl.WPF.SDK --version 34.0.5
    ```
2. Rebuild the application. `dotnet list package --outdated` lists the packages that have newer versions.

[GetVersionInfo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/getversioninfo-method/llms-full.txt) returns the version the application runs with, and its [ServicePack](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/versioninfo/servicepack-property/llms-full.txt) the number of the service pack. [Installing and Updating Packages](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/nuget/install-update/llms-full.txt) describes the update.

### Related Pages

- [NuGet Packages](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/installation/nuget/llms-full.txt): the package and its sources.
- [Toolbox and XAML Designer](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/troubleshooting/toolbox/llms-full.txt): the toolbox after installing the package.
- [Licensing](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/troubleshooting/licensing/llms-full.txt): license errors after installing.

---

## Nearby

- **Previous:** [Troubleshooting](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/troubleshooting/llms-full.txt)
- **Next:** [Toolbox and XAML Designer](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/troubleshooting/toolbox/llms-full.txt)
