Browse our Products

Aspose.Tasks for C++ 23.8 Release Notes

Significant changes since 23.8 release - the “long-style” includes

To avoid header name conflicts, since version 23.8 all library headers are moved to the separated directory. All existing projects will continue to work without changes, but you need to fix existing header references in your source files according to the new requirements. To do so:

  1. First, make sure that the project build runs without errors.
  2. Assign any value to ASPOSE_TASKS_CPP_DISABLE_SHORT_INCLUDES environment variable (please jump to p.5, if you don’t want/can not change your environment):
# for linux-like systems:

# for Windows command-line:
  1. Try to re-build your project. You will catch several error messages from your compiler, similar to Can not open file Project.h: No such file or directory.
  2. Go to each error line and add aspose.tasks.cpp/ to the left of the header name:
// obsolete-style include:
#include "Project.h"

// should be replace with new, long-style one:
#include "aspose.tasks.cpp/Project.h"
  1. If you don’t want (or just can’t) change the environment, you can make changes directly to your project file:
  • For your CMAKE projects, just add these to your CMakeLists.txt:
  • For your Visual Studio projects, you can add these lines to the root node of your .vcxproj file:
  1. The short-style includes will still work until January, 2024, inclusive. After that, since 24.2 release, only long-style includes will be acceptable.

All Changes

KeySummaryIssue Type
TASKSNET-10890Add an API allowing to specify user’s font folder when system font folders cannot be accessed by the applicationEnhancement
TASKSNET-10953Exception when Aspose.Tasks 23.7 is installed alongside with Aspose.Drawing.23.7Bug
TASKSNET-4895Optimize memory footprint of large projectsEnhancement

Public API and Backwards Incompatible Changes

The following public types were added:Description
Aspose.Tasks.FontSettingsSpecifies font settings used when rendering project’s view.
The following public methods and properties were added:Description
Aspose.Tasks.FontSettings.DefaultFontNameGets or sets the default (or fallback) font for rendering.
Aspose.Tasks.FontSettings.UseProjectDefaultFontGets or sets a value indicating whether the default font must be used for rendering.
Aspose.Tasks.FontSettings.FontResolveCallbackGets or sets a callback which can be used to customize resolved fonts.
Aspose.Tasks.FontSettings.SetFontFolders(System.String[],System.Boolean)Sets the folders where Aspose.Tasks looks for TrueType fonts when rendering project’s view.
Aspose.Tasks.Saving.HtmlSaveOptions.FontSettingsSpecifies font settings used when rendering project’s view.
Aspose.Tasks.Saving.ImageSaveOptions.FontSettingsSpecifies font settings used when rendering project’s view.
Aspose.Tasks.Saving.PdfSaveOptions.FontSettingsSpecifies font settings used when rendering project’s view.
Aspose.Tasks.TimephasedData.CreateCostTimephased(System.Int32, System.DateTime, System.DateTime, System.Double, Aspose.Tasks.TimephasedDataType)Creates and initializes a new instance of the class for cost-based time phased data.