You can easily download an evaluation version of Aspose.Tasks from the download page. The evaluation version provides absolutely the same capabilities as the licensed version of the component. Furthermore, evaluation version simply becomes licensed when you add a couple of lines of code to apply the license.
Evaluation Version Limitations
Evaluation version of Aspose.Tasks (without a license specified) provides full product functionality, but it translates all dates in project to 2000 year and clears values of hours, minutes and seconds.
The dates translated by the evaluation version are shown in the drawing below:
Note: If you want to test Aspose.Tasks without evaluation version limitations, you can also request a 30 Day Temporary License. Please refer to How to get a Temporary License?
Setting a License
The license is a plain text XML file that contains details such as the product name, number of developers it is licensed to, subscription expiry date and so on. The file is digitally signed, so don’t modify the file. Even inadvertent adding of an extra line break into the file will invalidate it.
Setting a License Purchased After 2005/01/22
Licenses purchased after 2005/01/22 when Aspose upgraded its licensing system should be set using the License class. Use the SetLicense method to load a license from a file or stream.
You need to set a license before performing any operations with documents. It is only required to set a license once per application (or process).
The license can be loaded from a file, stream or an embedded resource. Aspose.Tasks will try to find the license in the following locations:
- Explicit path.
- The folder that contains Aspose.Tasks.dll.
- The folder that contains the assembly that called Aspose.Tasks.dll.
- The folder that contains the entry assembly (your .exe).
- An embedded resource in the assembly that called Aspose.Tasks.dll.
The easiest way to set a license is to put the license file in the same folder as Aspose.Tasks.dll and specify just the file name without path as shown in the following example:
Example
[C#]
License license = new License();
license.SetLicense("Aspose.Tasks.lic");
[VB.NET]
Dim license As License = New License
license.SetLicense("Aspose.Tasks.lic")
The following example shows how to load a license from a stream:
Example
[C#]
License license = new License();
license.SetLicense(myStream);
[VB.NET]
Dim license As License = New License
license.SetLicense(myStream)
Another neat way of packaging the license with your application and making sure it will not be lost is to include it as an embedded resource into one of the assemblies that calls Aspose.Tasks. To include the file as an embedded resource perform the following steps:
- In Visual Studio .NET, include the .lic file into the project using the File | Add Existing Item... menu.
- Select the file in the Solution Explorer and set Build Action to Embedded Resource in the Properties window.
Setting a License Purchased Before 2005/01/22
Aspose.Tasks doesn't support old licenses anymore so please contact our Sales to get new license file