Archive

Posts Tagged ‘Project Items’

DXCore Services – ProjectItems

March 16th, 2011 Comments off

At the moment, the ProjectItems DXCore service contains only the single Active property which returns the EnvDTE.ProjectItem instance for the active text document. Most likely, it will be populated with additional APIs related to ProjectItems, in the future.

—–
Products: DXCore
Versions: 10.2 and up
VS IDEs: any
Updated: Mar/17/2011
ID: D068

How to add a file that depends upon another file

October 23rd, 2010 Comments off

Note, this article has been moved to the official DevExpress Support Center site. Please refer to the moved article as it might have further updates or additional comments. Thank you.

To programmatically add a file to a specific project that depends upon another file (DependentUpon), you can use methods from the DXCore Solution service.

Consider the following solution structure:

DXCore Solution Explorer structure sample

Read more…

How to add a file to a particular project

October 22nd, 2010 Comments off

Note, this article has been moved to the official DevExpress Support Center site. Please refer to the moved article as it might have further updates or additional comments. Thank you.

To programmatically add a file to a specific project, you can use the AddFileToProject method from the DXCore Solution service. Here is its definition:

public void AddFileToProject(string projectName, string filePath)

This method adds the specified file to the project with the given name. The project must be open in Visual Studio and be part of the active solution.

Read more…

DXCore Services – Solution

October 21st, 2010 Comments off

The Solution service provides methods for adding, removing, and renaming project items of the current opened solution.

Read more…