Adding a New Task with Aspose.Tasks vs VSTO

Skip to end of metadata
Go to start of metadata
While working with Microsoft Project files, you often need to add new tasks to projects. This article shows how to load MPP files in your .NET applications and add new tasks to your project using VSTO and Aspose.Tasks for .NET.

Contents Summary

Add a Task Using VSTO

To add a task using VSTO:

  1. Create a new project in Visual Studio.
  2. In the Solution Explorer, right-click and select Add Reference.
  3. Select the COM components tab, and select Microsoft Project 12.0 Object Library.
  4. Click OK.

This imports the Microsoft.Office.Interop.MSProject namespace at the start of your code. Use the code from the following example to add a new task.

Programming Samples - VSTO

Add a Task Using Aspose.Tasks for .NET 

To add tasks to project files using Aspose.Tasks for .NET:

  1. Create a new project in Visual Studio.
  2. In the Solution Explorer, right-click and select Add Reference.
  3. Select .NET tab and select Aspose.Tasks.
  4. Click OK.

This imports the Aspose.Tasks namespace at the start of your code. Use the code from the following example to add a new task.

Programming Sample - Aspose.Tasks

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.