- ProjectConverter is now able to convert single project files passed as command line argument

This commit is contained in:
Glatzemann 2012-08-23 21:11:44 +00:00
parent 9d456d1019
commit 7f75c22eea
2 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,12 @@ namespace ProjectConverter
#endregion
#region ConvertProject
public void ConvertProject(string projectFilePath)
{
ProjectPath projectPath = new ProjectPath(this, projectFilePath, ".");
ConvertProject(projectPath);
}
public void ConvertProject(ProjectPath project)
{
CurrentProject = project;

View File

@ -65,6 +65,9 @@ namespace ProjectConverter
case ".sln":
converter.ConvertAllProjects(file);
break;
case ".csproj":
converter.ConvertProject(file);
break;
default:
throw new NotImplementedException("unsupported file type '" + fileExt + "'");
}