Aspose.Tasks
24.12.0
dotnet add package Aspose.Tasks --version 24.12.0
NuGet\Install-Package Aspose.Tasks -Version 24.12.0
<PackageReference Include="Aspose.Tasks" Version="24.12.0" />
paket add Aspose.Tasks --version 24.12.0
#r "nuget: Aspose.Tasks, 24.12.0"
// Install Aspose.Tasks as a Cake Addin #addin nuget:?package=Aspose.Tasks&version=24.12.0 // Install Aspose.Tasks as a Cake Tool #tool nuget:?package=Aspose.Tasks&version=24.12.0
.NET API to Manipulate Project Files
Aspose.Tasks for .NET is a robust library designed for .NET developers, providing advanced tools for generating, editing, rendering, and converting Microsoft Project files. With this API, developers can work seamlessly with project properties, tasks, resources, assignments, baselines, custom fields, outline codes, and calendars, eliminating the need for Microsoft Project. It supports various project data manipulations, such as creating tasks, linking dependencies, managing resources, defining custom fields, applying calendar settings, handling baselines, and converting project data to different formats like PDF, Excel, CSV, HTML, and images. Aspose.Tasks empowers developers to build comprehensive project management solutions within their .NET applications.
Project Data
Project Properties Management
Enables reading and updating properties of a project to facilitate comprehensive project data managementk Data
Task Creation and Management
Allows the creation, manipulation, and management of tasks within a project structure, supporting project planning and tracking.
Resource Data
Resource Handling
Supports adding, updating, and managing resources, enabling project teams to allocate and monitor resources effectively.
Resource Assignment Data
Assignment Tracking
Manages assignments of resources to tasks, providing insights into workload distribution and resource usage.
Calendar Data
Calendar Creation
Enables creation and customization of calendars to define working days, hours, and exceptions specific to project needs.
Task Baseline Data
Task Configuration
Allows saving and tracking baseline data for tasks, facilitating variance analysis between planned and actual progress.
Resource Baseline Data
Resource Storage
Provides functionality to save baseline data for resources, aiding in budget and performance analysis.
Resource Assignment Baseline Data
Assignine Management
Supports baseline data storage for resource assignments, enabling comparison of planned vs. actual resource utilization.
Custom Field (Extended Attribute) Definition Data
Define and Access Extended Attributes
Create and manage extended attributes (custom fields) within project tasks and resources for data enrichment.
Extended Attribute Types
Define custom fields with specific data types (Text1, Number, etc.) to categorize and sort project data efficiently.
Custom Field Value Data
Assign Custom Field Values
Assign values to defined custom fields, enhancing task and resource information with custom metadata.
Custom Field Value Formats
Work with different formats and types for custom field values to fit diverse project requirements.
Outline Code Definition Data
Define Outline Codes
Create and structure outline codes for hierarchical categorization and organization within project tasks.
Assign Outline Code Levels
Set outline code levels to build structured classifications, aiding in project breakdown and detailed reporting.
Outline Code Value Data
Assign Values to Outline Codes
Input values to established outline codes, supporting detailed task grouping and classification.
Manage Outline Code Relationships
Establish relationships between outline code values for better hierarchical project management.
View Data
Customize Project Views
Configure views to display project data in specific formats, optimizing readability for various stakeholders.
Manage View Properties
Control view properties such as UID, Index, and Name for tailored project data presentation.
Table Data
Define Project Tables
Create tables for organizing and viewing project information in structured formats.
Table Field Customization
Adjust table fields within tables to display essential data points as per project needs.
TableField Data
Set TableField Properties
Define properties for individual table fields, including alignment and formatting for clear data display.
Control Data Display in Tables
Use TableField settings to show or hide specific data columns in project views.
Group Data
Define Project Groups
Group project data based on specific criteria for efficient organization and data analysis.
Grouping and Sorting Options
Set up grouping options for streamlined data categorization and sorting within project views.
GroupCriterion Data
Specify Grouping Criteria
Define criteria for data grouping, making it easier to manage complex projects with large datasets.
Advanced Grouping Options
Enable nested grouping for multi-level project data categorization.
Filter Data
Filter Definition Retrieval
Enables the extraction of filter definitions from MPP files, aiding in task and resource filtering for project data management.
Filter Criteria Access
Allows access to filter criteria details within MPP files, enabling precise data filtration based on project-specific requirements.
FilterCriteria Data
Filter Operations
Provides access to filter operations, supporting read and write for various project versions, enhancing filtering capabilities in project data.
GanttChartView Data
Bar Styles Customization
Supports customization of bar styles in Gantt chart views, allowing tailored visualization of project tasks.
Timescale Adjustment
Allows configuring timescales for Gantt chart views, facilitating detailed project time representation.
Text Styling in Gantt Charts
Enables text styling adjustments in Gantt chart views, supporting enhanced visual differentiation of task details.
Working with Primavera Formats
Import and Export Primavera Data
Supports importing and exporting Primavera file formats, enabling integration with popular project management tools.
Working with Projects
Project Creation
Enables the creation of project files with essential details like project start and end dates, task list, and resources.
Project Properties Access
Provides access to project properties, including title, author, and last saved date, for effective project tracking.
Working with Formulas
Define Custom Formulas
Allows defining custom formulas to automate calculations within the project plan, enhancing productivity.
Apply Formulas on Fields
Enables applying custom formulas on project, task, and resource fields, supporting dynamic data manipulation.
Working with Calendars
Calendar Management
Provides tools for creating and managing calendars associated with specific projects and tasks.
Set Work Weeks
Allows defining custom work weeks in calendars, enabling accurate scheduling and work tracking.
Working with Calendar Exceptions
Define Calendar Exceptions
Supports defining exceptions for holidays or non-working days, improving scheduling accuracy.
Apply Exceptions to Tasks
Enables assigning calendar exceptions to specific tasks, ensuring accurate project timelines.
Working with Tasks
Task Creation and Management
Provides capabilities for creating and managing tasks within a project, supporting complex project structures.
Task Duration Customization
Allows customizing task durations, including support for fixed duration and effort-driven tasks.
Working with Task Links
Define Task Dependencies
Allows defining dependencies between tasks using task links, improving scheduling accuracy.
Task Link Types
Supports setting different types of task links, such as Finish-to-Start, Start-to-Start, enhancing task relationships.
Working with Task Baselines
Task Baseline Creation
Enables creating task baselines to capture the initial project plan, supporting effective progress tracking.
Track Task Variance
Provides variance tracking between baseline and actual values, helping identify project deviations.
Working with Resources
Resource Allocation
Facilitates allocation of resources to tasks, supporting resource planning and utilization.
Resource Rate Definition
Enables setting custom rates for resources, assisting in project cost calculations.
Resource Overallocation Detection
Provides features to detect resource overallocation, aiding in resource management and optimization.
Working with Resource Assignments
Creating Resource Assignments
Supports creating resource assignments by linking resources with specific tasks.
General Resource Assignment Properties
Manage essential properties of resource assignments, such as cost and work allocations.
Managing Assignment Cost
Provides tools to track and manage the costs associated with resource assignments effectively.
Working with Resource Assignment Budgets
Enables budget tracking and assignment for resources, improving project financial control.
Handling Overtime, Remaining Costs, and Work
Offers management of overtime work, remaining cost calculations, and work estimates for assignments.
Calculating Percentages
Supports calculating work completion percentages for resource assignments to track progress.
Dealing with Variances
Provides variance calculation features to compare planned and actual data for assignments.
Stop or Resume an Assignment
Allows pausing or resuming assignments, offering flexibility in project scheduling.
Timephased Data Generation for Different Work Contours
Enables generation of time-phased data for various work contours, supporting detailed scheduling.
Saving Updated Resource Assignment to MPP
Supports saving modifications to resource assignments back into the MPP file format.
Read Write Rate Scale Information
Provides functionality to read and write rate scale information for resource assignments.
Adding Extended Attributes to Resource Assignments
Allows adding custom attributes to resource assignments for enhanced data tracking.
Working with Project Currencies
Managing Project Currency Codes
Supports setting and retrieving currency codes for projects, aligning with financial standards.
Managing Project Currency Digits
Allows setting the number of currency digits used in financial calculations for a project.
Managing Currency Symbols
Provides functionality for defining and managing currency symbols in project files.
Working with Views
Printing MS Project MPP files to Separate Image Files
Enables printing of project views to separate image files, supporting better visualization.
Remove Gap Between Tasks List and Footer
Provides an option to adjust layout and remove gaps between tasks list and footer during export.
Rendering Notes When Converting MS Project MPP file
Supports rendering task notes when converting MPP files to various formats.
Miscellaneous
Sorting Resources by Name
Offers functionality to sort project resources alphabetically by name for better organization.
Handling Exceptions using Aspose.Tasks
Provides robust error-handling mechanisms for managing exceptions within Aspose.Tasks.
Sorting Tasks by Name
Supports sorting project tasks by name, aiding in task organization and quick lookup.
Update Outline Code Definitions and Values
Allows updating outline code definitions and values to maintain structured project data.
Writing Metadata to MPP
Enables writing custom metadata to MPP files, improving project information management.
Working with VBA
Reading VBA Information from MPP Files
Enables reading VBA project details, including modules, references, and attributes directly from an MPP file.
Accessing VBA References
Provides access to VBA references, allowing you to retrieve library identifiers and names.
Extracting Module Details
Allows extraction of information about VBA modules, including names and source codes within a project.
Accessing Module Attributes
Retrieves attributes of VBA modules for in-depth analysis and management of project macros.
Converting MS Project MPP Files
Convert MPP to PDF
Allows conversion of Microsoft Project MPP files to PDF format with customization options, such as specifying views and date formats.
Convert MPP to Excel Formats
Supports conversion of MPP files to Excel formats (XLSX, Spreadsheet2003 XML) for easy data manipulation in Excel.
Convert MPP to CSV
Converts MPP files to CSV format with options to customize encoding, delimiter, and column headers.
Convert MPP to JPEG, PNG, TIFF
Provides the ability to convert MPP files to various image formats like JPEG, PNG, and TIFF with adjustable quality settings.
Convert MPP to SVG
Enables rendering of MPP files into SVG format for scalable, high-quality graphic representation of project data.
Export Jira Tasks to MPP
Facilitates exporting tasks from Jira to an MS Project MPP file format, bridging task management across platforms.
File Formats Supported by Aspose.Tasks for .NET
The following table indicates the input and output file formats supported by Aspose.Tasks for .NET.
Format | Description | Load | Save |
---|---|---|---|
MPP | Microsoft Project 2003/2007/2010/2013/2016/2019/2021 MPP and Microsoft Project Online formats are supported | ✔️ | ✔️ |
XML | Microsoft Project XML Format | ✔️ | ✔️ |
MPT | Microsoft Project Template | ✔️ | ✔️ |
XER | Primavera XER Format | ✔️ | ✔️ |
P6XML | Primavera P6XML Format | ✔️ | ✔️ |
MPX | Primavera MPX | ✔️ | ✔️ |
XLSX | Saving Project’s data (Tasks, Resources, or Assignments table) as Microsoft Excel spreadsheet | ✔️ | |
Saving the specific Project’s view as PDF | ✔️ | ||
HTML | Saving the specific Project’s view as simplified HTM or HTML Formats | ✔️ | |
CSV | Saving Project’s data (Tasks, Resources, or Assignments table) as comma-separated file | ✔️ | |
TXT | Saving Project’s data (Tasks, Resources, or Assignments table) as a file with the specified delimiter | ✔️ | |
TIFF | Saving the specific Project’s view as TIFF image | ✔️ | |
PNG | Saving the specific Project’s view as PNG image | ✔️ | |
JPEG | Saving the specific Project’s view as JPEG image | ✔️ | |
BMP | Saving the specific Project’s view as BMP image | ✔️ | |
SVG | Saving the specific Project’s view as SVG file | ✔️ | |
XPS | Saving the specific Project’s view as XPS | ✔️ |
Installation of Aspose.Tasks for .NET
Install Aspose.Tasks for .NET via NuGet
- Open Visual Studio and go to
NuGet Package Manager
.- Search for
Aspose.Tasks
and clickInstall
to add the API to your project.
Install or Update Aspose.Tasks via Package Manager Console
- Open your project in Visual Studio.
- Go to
Tools -> NuGet Package Manager -> Package Manager Console
.- Run the following command:
Install-Package Aspose.Tasks
Code Sample 1: Creating and Saving a New Project
Easily create a new project instance, set basic properties, and save it in MPP format.
// Create a new project
Project project = new Project();
// Set project start date
project.Set(Prj.StartDate, new DateTime(2023, 1, 1));
// Save the project in MPP format
project.Save("NewProject_out.mpp", SaveFileFormat.MPP);
Code Sample 2: Adding Tasks with Dependencies
Define tasks and link them with dependencies, streamlining project scheduling.
// Initialize a project
Project project = new Project();
// Add tasks
Task task1 = project.RootTask.Children.Add("Task 1");
Task task2 = project.RootTask.Children.Add("Task 2");
// Link tasks with Finish-to-Start dependency
TaskLink link = project.TaskLinks.Add(task1, task2, TaskLinkType.FinishToStart);
// Save the project
project.Save("LinkedTasks_out.mpp", SaveFileFormat.MPP);
Code Sample 3: Defining and Applying Calendar Workdays
Set up a project calendar, specify workdays, and apply it to the project for accurate scheduling.
// Create project and calendar
Project project = new Project();
Calendar calendar = project.Calendars.Add("Custom Calendar");
// Set workdays
calendar.WeekDays.Add(WeekDay.CreateDefaultWorkingDay(DayType.Monday));
calendar.WeekDays.Add(WeekDay.CreateDefaultWorkingDay(DayType.Tuesday));
calendar.WeekDays.Add(WeekDay.CreateDefaultWorkingDay(DayType.Wednesday));
// Assign calendar to project
project.Set(Prj.Calendar, calendar);
// Save the project
project.Save("ProjectWithCalendar_out.mpp", SaveFileFormat.MPP);
Code Sample 4: Exporting Project to PDF
Render the project as a PDF document, including task details, for easy sharing and reporting.
// Load an existing project
Project project = new Project("ExistingProject.mpp");
// Save the project as PDF
project.Save("ProjectReport_out.pdf", SaveFileFormat.PDF);
Project Management API
| Microsoft Project File Manipulation
| ASP.NET
| MPP File Conversion
| Project Baseline Tracking
| Resource Assignment Management
| Gantt Chart Customization
| VBA for Projects
| Project Task Links
| Calendar Exceptions
| Custom Fields
| Outline Code Definition
| Reporting Services
| Monte Carlo Simulation
| Primavera Integration
| PDF Export
| CSV Export
| SVG Rendering
| Custom Formulas
| Project Currency Management
| Exception Handling
| Task Sorting
| Metadata to MPP
| .NET API
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows is compatible. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net35 is compatible. net40 was computed. net40-client is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0 Client
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 4.7.0)
- System.Security.Permissions (>= 4.5.0)
- System.Text.Encoding.CodePages (>= 4.5.0)
-
net6.0
- Aspose.Drawing (>= 23.5.0)
- System.Security.Permissions (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 6.0.0)
-
net6.0-windows
- System.Drawing.Common (>= 6.0.0)
- System.Security.Permissions (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 6.0.0)
NuGet packages (9)
Showing the top 5 NuGet packages that depend on Aspose.Tasks:
Package | Downloads |
---|---|
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications. |
|
SenseNet.Preview.Aspose.PreviewImageGenerators
Aspose Preview image generator classes for the sensenet platform. |
|
SenseNet.Preview.Aspose
sensenet Aspose Preview Provider makes it possible to generate and serve preview images using Aspose libraries. |
|
NovaQual.DocumentConversionLib
This contains all the document conversions functionality e.g word to pdf, exce to pdf etc |
|
Chocopiee
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.12.0 | 486 | 12/14/2024 |
24.11.0 | 4,828 | 11/21/2024 |
24.10.0 | 11,228 | 10/23/2024 |
24.9.0 | 6,290 | 9/26/2024 |
24.8.0 | 7,770 | 8/25/2024 |
24.7.0 | 15,794 | 7/26/2024 |
24.6.0 | 12,498 | 6/27/2024 |
24.5.0 | 11,887 | 5/22/2024 |
24.4.0 | 29,459 | 4/14/2024 |
24.3.0 | 3,155 | 3/20/2024 |
24.2.0 | 24,272 | 2/25/2024 |
24.1.0 | 21,275 | 1/26/2024 |
23.12.0 | 9,882 | 12/17/2023 |
23.11.0 | 16,238 | 11/15/2023 |
23.10.0 | 51,347 | 10/16/2023 |
23.9.0 | 12,350 | 9/21/2023 |
23.8.0 | 10,421 | 8/19/2023 |
23.7.0 | 28,566 | 7/21/2023 |
23.6.0 | 16,618 | 6/19/2023 |
23.5.0 | 11,770 | 5/17/2023 |
23.4.0 | 13,667 | 4/18/2023 |
23.3.0 | 41,795 | 3/13/2023 |
23.2.0 | 19,458 | 2/8/2023 |
23.1.0 | 23,035 | 1/17/2023 |
22.12.0 | 39,370 | 12/12/2022 |
22.11.0 | 12,316 | 11/15/2022 |
22.10.0 | 34,007 | 10/8/2022 |
22.9.0 | 43,559 | 9/8/2022 |
22.8.0 | 34,542 | 8/12/2022 |
22.7.0 | 73,315 | 7/14/2022 |
22.6.0 | 76,137 | 6/14/2022 |
22.5.0 | 16,691 | 5/16/2022 |
22.4.0 | 13,385 | 4/14/2022 |
22.3.0 | 64,899 | 3/15/2022 |
22.2.0 | 23,271 | 2/11/2022 |
22.1.0 | 16,590 | 1/14/2022 |
21.12.0 | 28,434 | 12/16/2021 |
21.11.0 | 10,984 | 11/19/2021 |
21.10.0 | 10,682 | 10/13/2021 |
21.9.0 | 17,952 | 9/17/2021 |
21.8.0 | 11,902 | 8/14/2021 |
21.7.0 | 18,044 | 7/18/2021 |
21.6.0 | 11,032 | 6/15/2021 |
21.5.0 | 26,961 | 5/8/2021 |
21.4.0 | 15,031 | 4/10/2021 |
21.3.0 | 14,071 | 3/4/2021 |
21.2.0 | 8,499 | 2/11/2021 |
21.1.0 | 3,832 | 1/20/2021 |
20.12.0 | 17,231 | 12/10/2020 |
20.11.0 | 30,280 | 11/5/2020 |
20.10.0 | 2,243 | 10/9/2020 |
20.9.1 | 2,033 | 9/22/2020 |
20.9.0 | 1,539 | 9/7/2020 |
20.8.0 | 61,749 | 8/14/2020 |
20.7.2 | 24,164 | 7/24/2020 |
20.7.1 | 2,413 | 7/15/2020 |
20.7.0 | 2,193 | 7/3/2020 |
20.6.0 | 12,333 | 6/5/2020 |
20.5.0 | 17,373 | 5/7/2020 |
20.4.0 | 16,873 | 4/3/2020 |
20.3.0 | 5,368 | 3/10/2020 |
20.2.0 | 4,313 | 2/12/2020 |
20.1.0 | 3,453 | 1/13/2020 |
19.12.0 | 14,774 | 12/4/2019 |
19.11.0 | 7,126 | 11/5/2019 |
19.10.0 | 10,248 | 10/3/2019 |
19.9.0 | 7,684 | 9/13/2019 |
19.8.1 | 1,052 | 9/7/2019 |
19.8.0 | 5,097 | 8/2/2019 |
19.7.0 | 10,144 | 7/13/2019 |
19.6.1 | 3,055 | 6/19/2019 |
19.6.0 | 1,269 | 6/11/2019 |
19.5.0 | 3,245 | 5/21/2019 |
19.4.0 | 5,708 | 4/2/2019 |
19.3.0 | 1,421 | 3/3/2019 |
19.2.0 | 2,109 | 2/1/2019 |
19.1.0 | 49,167 | 1/11/2019 |
18.12.0 | 1,981 | 12/9/2018 |
18.11.0 | 2,614 | 11/1/2018 |
18.10.0 | 1,880 | 10/1/2018 |
18.9.0 | 28,378 | 9/4/2018 |
18.8.0 | 3,443 | 8/1/2018 |
18.7.1 | 2,032 | 7/3/2018 |
18.7.0 | 1,291 | 7/3/2018 |
18.6.0 | 1,906 | 6/5/2018 |
18.5.0 | 3,038 | 5/10/2018 |
18.4.0 | 1,702 | 3/29/2018 |
18.3.0 | 6,156 | 3/13/2018 |
18.2.0 | 2,405 | 2/10/2018 |
17.12.0 | 14,476 | 12/6/2017 |
17.11.0 | 3,872 | 11/1/2017 |
17.9.0 | 2,858 | 9/30/2017 |
17.8.0 | 3,034 | 8/31/2017 |
17.7.0 | 26,398 | 7/31/2017 |
17.6.0 | 6,965 | 6/29/2017 |
17.5.0 | 1,767 | 5/31/2017 |
17.3.0 | 1,965 | 3/31/2017 |
17.1.0 | 2,454 | 1/31/2017 |
16.11.0 | 1,961 | 11/17/2016 |
9.6.0 | 2,789 | 9/19/2016 |
9.5.0 | 28,017 | 8/1/2016 |
9.4.1 | 1,728 | 6/12/2016 |
9.4.0 | 1,621 | 5/25/2016 |
9.3.0 | 1,965 | 3/17/2016 |
9.2.1 | 2,770 | 1/29/2016 |
9.1.0 | 3,453 | 12/30/2015 |
9.0.1 | 2,388 | 11/30/2015 |
8.9.0 | 8,809 | 11/6/2015 |
8.8.1 | 1,815 | 10/5/2015 |
8.7.0 | 37,280 | 8/28/2015 |