Import a profile
To import a profile by specifying a path, call the ImportProfile
method of the IProject
object.
public void ImportProfile(ICommandContext c, ICommandParams p)
{
//Get the project
IProject project = c.App.Workspace.CurrentProject;
//Import the profile
var profilePath = "...";
project.ImportProfile(profilePath);
}