Licensing and Subscription

Evaluate Aspose.Tasks

A free evaluation version of Aspose.Tasks for .NET can be downloaded from the downloads section of Aspose web site at https://releases.aspose.com/tasks/net.

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?

Evaluation Limitations

The evaluation version provides all the features except the following:

MPP Write Support

Saving project as MPP file is only available in licensed versions of Aspose.Tasks for .NET. Please note that writing of MPP file preserves MPP format version of the original file. For example, if the original MPP file is in Microsoft Project 2003 format, the MPP file updated through Aspose.Tasks for .NET will also be in Microsoft Project 2003 MPP format. The same is valid for Microsoft Project 2007, 2010, 2013, 2016, 2019, 2021 MPP formats.

Project Server\Project Online Write Support

Creating\Updating of projects in Project Server or Project Online is only available in licensed versions of Aspose.Tasks for .NET.

DateTime Limitation

The date year will be changed to 2000 in the projects that will be written using Aspose.Tasks for .NET in format other than MPP. This can be demonstrated by the following code example. In the example project with two tasks is created using Aspose.Tasks for .NET without a license set, then the project is saved in Microsoft Project XML format.

 1// Create a project instance
 2Project project = new Project();
 3
 4// Define Tasks
 5Task task1 = project.RootTask.Children.Add("Task1");
 6task1.Set(Tsk.ActualStart, DateTime.Parse("06-Apr-2010"));
 7
 8Task task2 = project.RootTask.Children.Add("Task2");
 9task2.Set(Tsk.ActualStart, DateTime.Parse("10-Apr-2010"));
10
11project.Save("EvalProject_out.xml", SaveFileFormat.XML);

The resulting project file looks like the one below when opened in Microsoft Project. Note that the Start and Finish dates for Task1 have been converted from 06-Apr-2010 to 06-Apr-2000. Similarly, the Start and Finish dates for Task2 have been converted from 10-Apr-2010 to 10-Apr-2000. These dates are written with the same original year if the project is created using a licensed version of Aspose.Tasks for .NET.

Date changes in the evaluation version of Aspose.Tasks

| Year of start and finish dates were reset to 2000|

Aspose.Tasks Watermark

When project is saved to a graphical format (PDF, HTML, TIFF, PNG, BMP, etc) using evaluation version of Aspose.Tasks for .NET the watermark is added to each page.

| Watermark added to a project saved to PDF document.|

Applying the License

Once you are happy with your evaluation of Aspose.Tasks for .NET, you can buy a license at the Aspose website: https://purchase.aspose.com/buy. Make yourself familiar with the different licenses offered. If you have any questions, contact the Aspose sales team and they’ll be happy to help you.

Aspose.Tasks for .NET supports two license types: perpetual (pay once) and metered (pay-per-use). For more details please refer to License Types page.

Aspose perpetual license carries a one-year subscription for free upgrades to any new versions or fixes that come out during this time. Technical support is free and unlimited and provided both to licensed and evaluation users.

The license is a plain-text XML file that contains details such as the product name, number of licensed developers, subscription expiry date and so on. The file is digitally signed, so do not modify the file: even adding an extra line break to the file invalidates it.

When to Apply a License

Follow these simple rules:

Applying a perpetual license

Use the License.SetLicense method to license the component. The easiest way to set a license is to put the license file in the same folder as the Aspose.Tasks.dll and specify the file name, without a path, as shown below.

1Aspose.Tasks.License license = new Aspose.Tasks.License();
2license.SetLicense("license.lic");

Applying a License Using File or Stream

This code snippet initializes a license stored in a file or an embedded resource.

1License license = new License();
2license.SetLicense("Aspose.Tasks.lic");

This code snippet initializes a license from a stream.

1using (FileStream stream = new FileStream("Aspose.Tasks.lic", FileMode.Open))
2{
3    License license = new License();
4    license.SetLicense(stream);
5}

Applying a Licenses Using an Embedded Resource

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 call the component’s DLL. To include the license file as an embedded resource, perform the following steps:

  1. In Visual Studio .NET, add the license (.lic) file into the project using the Add Existing Item on the File menu.
  2. Select the file in the Solution Explorer.
  3. Set Build Action to Embedded Resource in the Properties window.

To access the license embedded in the assembly (as an embedded resource), you don’t have to call the Microsoft .NET Framework’s System.Reflection.Assembly class’ GetExecutingAssembly and GetManifestResourceStream methods. Instead, just add the license file as an embedded resource to your project and pass the name of the license file to the License class’ SetLicense method. The License class will automatically find the license file in the embedded resources.

Applying a Metered (pay-per-use) license

A Metered license is a licensing mechanism that allows customers to be billed based on the usage of the API features. For more details, please refer to Metered Licensing FAQ section. To activate the Metered license you need public and private keys.

Applying a Metered license is as simple as those two lines of code:

1var metered = new Metered();
2metered.SetMeteredKey("<public key>", "<private key>");

Generated PDF Document Properties Information

Please note that you cannot set values of the Application and Producer fields of the generated PDF file, because “Aspose Ltd.” and “Aspose.Tasks for .NET x.x.x” will be displayed in these fields.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.