Table of Contents
This appendix covers the license mechanism of yFiles WPF. It explains the basic steps to successfully include a valid license into a yFiles WPF-based application.
In order to run, a yFiles WPF-based application needs a valid license file properly bundled in the application's assembly. The file's format is XML based. The following example shows a (non-functional) development license file (for a Single Developer license):
Example B.1. What a license file looks like
<?xml version="1.0" encoding="UTF-8"?> <license version="1.2"> <product>yFiles WPF</product> <type>singledeveloper</type> <developer><![CDATA[Joe Average]]></developer> <distribution>false</distribution> <version>2.2</version> <date>07/16/2010</date> <watermark>yFiles WPF Development License</watermark> <key>90b9a98e11c9923878b2c6403ac60efc60fbacdc</key> </license>
yFiles WPF uses the functionality of the .NET framework's LicenseManager class. To activate the license at compilation time, you have to:
The .NET framework license compiler will embed the license information into your application. During runtime, no license file is needed (provided it has been embedded during compilation).
There are two different kinds of yFiles WPF license files that are strictly intended for one of two different situations:
It is most important that for final deployment of a yFiles WPF-based application, the development license file must not be included in the application's assembly. Instead, the distribution license file must be included.
As part of the installation of the yFiles WPF evaluation distribution, the installer executable also installs a development license file that is valid for the evaluation period. By default, this license file is located within the yFiles WPF installation directory in the lib/ directory, where all yFiles WPF assemblies are installed. All programming samples already come with a suitable .licx file that licenses all needed components for the demo.
An evaluation version of yFiles WPF cannot be used together with a non-evaluation license file.
In non-evaluation distributions of yFiles WPF, there is no license file installed. Thus, to start developing, you only need to copy the development license file that you have received in addition to your licensed yFiles WPF package to the same directory where the yFiles WPF assemblies reside.
A non-evaluation license file cannot be used to activate an evaluation version of yFiles WPF.
|
Copyright ©2004-2011, yWorks GmbH. All rights reserved. |