# Telerik License Not Found Dialog Shown in the Main Project When Telerik UI for WPF is Installed in a Class Library

## Environment

<table>
	<tbody>
		<tr>
			<th scope="row">Product Version</th>
			<td>2025.2.521</td>
		</tr>
		<tr>
			<th scope="row">Product</th>
			<td>UI for WPF</td>
		</tr>
	</tbody>
</table>

## Description

The invalid or missing Telerik license key dialog and watermark are displayed when the Telerik assemblies are referenced, even when a valid license is installed. This happens when Telerik UI for WPF is installed in a class library that is referenced in the main project, where the main project doesn't explicitly reference the Telerik assemblies.

This behavior occurs in .NET projects and .NET Framework projects using the SDK-Style template.

## Solution

This is an expected behavior that comes from the nature of the Telerik licensing mechanism. To resolve it, use one of the following two approaches:

* (recommended) Make sure to install the [Telerik.Licensing](https://www.nuget.org/packages/Telerik.Licensing) NuGet package also in the main project.

  ```XML
  	
  	<ItemGroup>
  		<PackageReference Include="Telerik.Licensing" Version="1.6.*" />
  	</ItemGroup>
  ```

* Or alternatively, add the `IncludeAssets` and `PrivateAssets` attributes to the `PackageReference` tag in the `.csproj` file of the class library.

  ```XML
  	
  	<ItemGroup>
  		<PackageReference Include="Telerik.Windows.Controls.for.Wpf.Xaml" IncludeAssets="all" PrivateAssets="none" Version="2025.2.521" />
  	</ItemGroup>
  ```
