Publishing .NET Applications
Publishing turns a WPF project for .NET 8 or higher into a folder you can deploy. With TXTextControl.TextControl.WPF.SDK referenced, Visual Studio's Publish and the dotnet publish command copy the assemblies of TX Text Control and, for the target runtime you select, its native libraries next to your executable. Set the target runtime, and the folder is complete.
Before You Begin
- The WPF project references
TXTextControl.TextControl.WPF.SDK34.0.5; see Package Overview. - You have decided on x64 or x86; see x86, x64, and AnyCPU.
- The project uses your licensed package, not a trial; see Application Licensing.
Publish With Visual Studio
Select the WPF project in Solution Explorer, and choose Build > Publish Selection.
Select Folder, and click Next:

Select Folder once more as the specific target, and click Next.
Choose where to publish, and click Finish. Visual Studio saves the choices as a publish profile.
Click Show all settings:

Set Target runtime to
win-x64, or towin-x86for a 32-bit application, and click Save.
Click Publish.
The target runtime is what makes the publish folder complete: with it, all files of TX Text Control the application needs, the native libraries and the format filters included, are copied there.
Publish With the .NET CLI
In a terminal, in the folder of the WPF project:
dotnet publish Release win-x64 false publish
What the options do:
-c Releasepublishes the release configuration.-r win-x64is the target runtime: the 64-bit native libraries go next to the executable. For 32-bit, usewin-x86. These are the only runtimes for which the package contains native libraries. Without-r, both sets stay in the output, in runtimes\win-x86\native and runtimes\win-x64\native.--self-contained falsepublishes framework-dependent: the application runs with the .NET Desktop Runtime of the user's machine.--self-contained trueadds the .NET runtime to the folder instead.-o publishnames the output folder.
The Publish Folder
After a win-x64 publish, the folder contains:
| Files | Role |
|---|---|
| Your executable and assemblies, such as MyApp.exe and MyApp.dll | The application, with the TX Text Control license embedded |
| TXTextControl.WPF.dll, TXTextControl.dll, TXTextControl.Server.dll and the other assemblies of the package | The managed part of TX Text Control |
| tx34.dll, tx34_dox.dll, tx34_pdf.dll and the other native libraries | The 64-bit document engine |
| de | The German resources |
The folder has no license file, because the license is inside your assembly. The complete list of files is on Managed Assemblies and Native Libraries.
Deploy the folder as a whole. Single-file publishing isn't described for TX Text Control.
Deploy the Folder
Copy the content of the publish folder to the user's machine with your installer, a file copy or an MSIX package. That machine needs:
- The .NET Desktop Runtime of your target version, if the application is framework-dependent.
- The Visual C++ runtime in the bitness of the application; see Visual C++ Runtime Dependencies.
The NuGet package and the setup of TX Text Control aren't needed there. If the application fails after deployment, see A Published .NET Application Lacks the Native Libraries.
Next Steps
- MSIX Packaging and Microsoft Store Deployment: package the WPF application for sideloading or the Microsoft Store.
- CI/CD: publish in a build pipeline.
- Deploying .NET Framework Applications: WPF applications for the .NET Framework.