When building console applications, there are no forms to add components to and therefore Visual Studio won't create a licenses.licx file.
In such a scenario, follow these steps:
- Create a temporary WPF application and add all the desired licensed components to the Main Window.
- Then close the WPF application and copy the licenses.licx file into your console application project.
- Make sure that the licenses.licx file is configured as an embedded resource. To configure the licenses.licx file as an embedded resource, follow these steps:
- Right-click the licenses.licx file in the Solution Explorer window and select Properties.
- In the Properties window, set the Build Action property to Embedded Resource.