
Aspose.Tasks Cloud .NET SDK
Cloud-Based C# .NET Project Management SDK for Developers
Read, Write, Convert & Manipulate MS Project & Primavera Files via REST API in the Cloud.
What is Aspose.Tasks Cloud .NET SDK?
Aspose.Tasks Cloud .NET SDK is a powerful cloud-based software development kit that empowers .NET developers to programmatically manage Microsoft Project (MPP, MPT, MPX) and Primavera (XER, XML, PrimaveraP6XML) files without requiring Microsoft Office or Project to be installed. It wraps the Aspose.Tasks Cloud REST API to simplify integration of advanced project management features—such as task manipulation, resource scheduling, calendar management, and risk analysis—into cloud-based .NET applications running on Windows, Linux, or macOS. The SDK supports operations like reading extended attributes, importing from databases, rescheduling tasks, performing Monte Carlo simulations, and converting project files to PDF, XLSX, HTML, and image formats.
Designed for scalability and security, Aspose.Tasks Cloud .NET SDK enables developers to build robust, enterprise-grade applications for project tracking, reporting, and collaboration. With support for work breakdown structures (WBS), task links, assignments, resource leveling, and time-scaled data, the SDK provides comprehensive control over project data. Developers can quickly get started by registering a free account at Aspose Cloud, obtaining App SID and key, and installing the SDK via NuGet. The SDK also includes detailed documentation, API references, code samples, and free technical support to accelerate development and ensure reliability in production environments.
Getting Started with Aspose.Tasks Cloud .NET SDK
To get started with Aspose.Tasks Cloud .NET SDK, first register a free account at the Aspose Cloud Dashboard to obtain your App SID and App Key. Then, install the SDK using NuGet Package Manager in Visual Studio by running `Install-Package Aspose.Tasks-Cloud`, or use the command `nuget install Aspose.Tasks-Cloud` from the command line. The SDK is built on .NET Standard 2.0 and works across Windows, Linux, and macOS. Once installed, configure the `Configuration` object with your credentials and start using the `TasksApi` class to manage project files in the cloud. For more information, visit the [Aspose.Tasks Cloud .NET SDK](https://products.aspose.cloud/tasks/net/) product page.
Install Aspose.Tasks Cloud .NET SDK via NuGet
Install-Package Aspose.Tasks-CloudConvert MS Project Files to PDF, XLSX & Images
Aspose.Tasks Cloud .NET SDK enables developers to convert project files to a wide range of output formats including PDF, XLSX, HTML, CSV, and various image formats like PNG, JPEG, TIFF, and SVG. This is especially useful for generating reports, sharing project status with stakeholders, or integrating project data into other systems. The conversion process supports custom rendering options such as specifying report types (e.g., Milestones, Critical Tasks), applying view settings, and including comments. Developers can upload MPP/MPT files to cloud storage and then request conversion using asynchronous or synchronous API calls, ensuring efficient handling of large or complex projects.
Convert MPP to PDF in C#
var config = new Configuration
{
AppSid = "MY_CLIENT_ID",
AppKey = "MY_CLIENT_SECRET"
};
var tasksApi = new TasksApi(config);
using (var inputStream = new FileStream("input.mpp", FileMode.Open))
{
var uploadFileRequest = new PostCreateRequest("input.mpp", inputStream);
tasksApi.UploadFile(uploadFileRequest);
}
var request = new GetReportPdfRequest { Name = "input.mpp", Type = ReportType.Milestones };
Stream response = await tasksApi.GetReportPdfAsync(request);
Manage Project Tasks, Resources & Calendars
The SDK provides comprehensive APIs for managing core project elements: tasks, resources, assignments, and calendars. Developers can add, update, delete, and move tasks within the project hierarchy, manage task links and dependencies, and manipulate resource assignments—including cost and work data. Calendar management includes creating new calendars, adding exceptions, retrieving calendar information by UID, and managing work weeks. Extended attributes, outline codes, and WBS definitions are also fully supported. These capabilities allow developers to build dynamic project management applications that synchronize with cloud-based project data in real time.
Add a New Task to Project & Update Its Properties
var request = new PostTaskRequest("project.mpp", new TaskItem { Name = "New Task" });
var response = await tasksApi.PostTaskAsync(request);
// Update the task
response.TaskItem.Name = "Updated Task";
var updateRequest = new PutTaskRequest("project.mpp", response.TaskItem.Uid, response.TaskItem);
await tasksApi.PutTaskAsync(updateRequest);
Perform Monte Carlo Risk Analysis & Generate Reports
Aspose.Tasks Cloud .NET SDK includes built-in support for Monte Carlo simulation to perform risk analysis on project schedules. Developers can run simulations to generate probabilistic forecasts of project completion dates, identify critical path variations, and assess the impact of uncertainties in task durations. The SDK allows configuration of simulation parameters such as confidence levels and iteration counts, and supports exporting the resulting risk report in PDF or image formats. This feature is invaluable for project managers needing to communicate risk exposure to stakeholders and make data-driven decisions about project timelines and resource allocation.
Run Monte Carlo Risk Analysis & Save Report
var riskOptions = new RiskAnalysisSettings
{
ConfidenceLevel = ConfidenceLevel.CL75,
IterationsCount = 200,
Distribution = DistributionType.Normal
};
var request = new PostProjectRiskAnalysisRequest("project.mpp", riskOptions);
var response = await tasksApi.PostProjectRiskAnalysisAsync(request);
// Save the report as PDF
var reportRequest = new GetReportPdfRequest { Name = "project.mpp", Type = ReportType.RiskAnalysis };
Stream report = await tasksApi.GetReportPdfAsync(reportRequest);
Import Primavera Projects & Manage VBA Modules
The SDK supports importing projects from Primavera P6 XML and XER formats, as well as from databases using custom connection strings. This enables seamless migration of Primavera data into Microsoft Project-compatible structures for analysis and reporting. Additionally, Aspose.Tasks Cloud .NET SDK provides full control over VBA (Visual Basic for Applications) modules—developers can read, create, update, and delete VBA modules and their components programmatically. This is essential for automating macro-enabled project templates and ensuring consistency across enterprise project portfolios without manual intervention.
Import Primavera XER File & Manage VBA Module
// Import Primavera XER
var importRequest = new PostProjectFromDatabaseRequest("primavera.xer", "connection_string");
var importedProject = await tasksApi.PostProjectFromDatabaseAsync(importRequest);
// Add a new VBA module
var vbaModule = new VbaModule { Name = "MyModule", Type = VbaModuleType.ProceduralModule };
var vbaRequest = new PostVbaModuleRequest("project.mpp", vbaModule);
await tasksApi.PostVbaModuleAsync(vbaRequest);
