Aspose.Tasks for .NET 23.4 Release Notes

All Changes

KeySummaryIssue Type
TASKSNET-10579Add support of .NET 6.0 for non-Windows operating systemsNew Feature
TASKSNET-10742[Breaking change] Replace usages of System.Drawing.StringAlignment with Aspose.Tasks.Visualization.StringAlignmentEnhancement
TASKSNET-10832Fix logic of UseProjectDefaultFont flag when project is rendered to HTML, PDF or Image formatsBug
TASKSNET-10831Fix NullReferenceException when accessing AssignmentBaseline.TimephasedData for new Assignment’s baselineBug
TASKSNET-10825Fix task baseline 1-10 properties are not shown when opening a resulting MPP 2007 file using MS ProjectBug
TASKSNET-10824Fix baselines’s FixedCost is not shown when output MPP file is opened using MS ProjectBug
TASKSNET-10823Fix OverflowException when opening the specific fileBug
TASKSNET-10816Fix generation of timephased data when timephased implicit exception is presentBug

Public API and Backwards Incompatible Changes

The following public types were added:Description
Aspose.Tasks.Visualization.HorizontalStringAlignmentSpecifies the alignment of a text string relative to its layout rectangle.
The following public methods and properties were deleted:Description
Aspose.Tasks.Calendar.ParentProject
Aspose.Tasks.CalendarCollection.ParentProject
Aspose.Tasks.Filter.ParentProject
Aspose.Tasks.FilterCollection.ParentProject
Aspose.Tasks.Group.ParentProject
Aspose.Tasks.GroupCollection.ParentProject
Aspose.Tasks.Table.ParentProject
Aspose.Tasks.TableCollection.ParentProject
Aspose.Tasks.TableFieldCollection.ParentProject
The following public enumerations were added:Description
Aspose.Tasks.Visualization.HorizontalStringAlignment.NearSpecifies the text be aligned near the layout. In a left-to-right layout, the near position is left. In a right-to-left layout, the near position is right.
Aspose.Tasks.Visualization.HorizontalStringAlignment.CenterSpecifies that text is aligned in the center of the layout rectangle.
Aspose.Tasks.Visualization.HorizontalStringAlignment.FarSpecifies that text is aligned far from the origin position of the layout rectangle. In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left.

Breaking change notice

Related issue: TASKSNET-10742 - Replace usages of System.Drawing.StringAlignment with Aspose.Tasks.Visualization.HorizontalStringAlignment

In order to add support for .NET 6.0 we had to remove usages of System.Drawing.StringAlignment The type of the following properties was changed to Aspose.Tasks.Visualization.HorizontalStringAlignment:

TableField.AlignData
TableField.AlignTitle
UsageView.AlignDetailsData
TimescaleTier.Alignment
ViewColumn.StringAlignment

Examples and additional notes

Related issue: TASKSNET-10579 - Add support of .NET 6.0 for non-Windows operating systems.

We added version of Aspose.Tasks for .NET targeting .NET 6.0 to ZIP and Nuget packages. This version uses Aspose.Drawing instead of System.Drawing for graphics manupulation such as rendering of project’s views. Also this version has the following limitation: Print-related methods are not supported, even for windows platform.
Thus the following members are not present in version for .NET 6.0.

Methods:

Project.Print(PrintOptions)
Project.Print(string)
Project.Print(PrinterSettings)
Project.Print(PrinterSettings,string)
Project.Print(PrinterSettings,PrintOptions)
Print(PrinterSettings,PrintOptions,string)

Type:

PrintOptions

.NET Framework 4.0 deprecation notice

Starting with ver. 23.10 (October 2023) Aspose.Tasks for .NET targeting .NET Framework 4.0 will be removed from ZIP, Nuget and MSI installer packages.