Archive

Posts Tagged ‘Solution’

How to add assembly and project references to a specific project using DXCore

April 19th, 2012 Comments off

To add an assembly reference, you first require a reference to the target project. To get one, you can use the Source Model DXCore service, for example:

ProjectElement projectElement = CodeRush.Source.ActiveProject;

Read more…

How to add new projects to a solution programmatically using DXCore

April 19th, 2012 Comments off

You can add new projects from the Visual Studio built-in project templates to the current solution using the DXCore Solution service:

CodeRush.Solution.AddProject("ProjectTemplateName", "UniqueProjectName");

Read more…

Spell checking the entire solution

April 9th, 2012 2 comments
NOTE: please take into account the “Versions” field at the bottom of the post, to determine the build number for which the content is applied. Click here to see the latest officially released version.

In addition to the usual Spell Checker CodeRush feature, you can find and review spelling errors from the entire solution in the dedicated Spell Checker tool window:

CodeRush Spell Checker tool window in the DevExpress Menu

Read more…

A new button for the DXCore Visualize toolbar – Clear Solution Cache

April 9th, 2012 Comments off
NOTE: please take into account the “Versions” field at the bottom of the post, to determine the build number for which the content is applied. Click here to see the latest officially released version.

The DXCore Visualize toolbar now has a new button – Clear Solution Cache:

Clear Solution Cache on the DXCore Visialize Toolbar

Read more…

DXCore Services – Source (SourceModel)

April 7th, 2011 Comments off

Provides access to the source model services. This DXCore service contains lots of useful APIs for working with the source code of the entire solution hierarchy.

Read more…

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…