- ProjectConverter is now able to convert single project files passed as command line argument
This commit is contained in:
parent
9d456d1019
commit
7f75c22eea
@ -45,6 +45,12 @@ namespace ProjectConverter
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ConvertProject
|
#region ConvertProject
|
||||||
|
public void ConvertProject(string projectFilePath)
|
||||||
|
{
|
||||||
|
ProjectPath projectPath = new ProjectPath(this, projectFilePath, ".");
|
||||||
|
ConvertProject(projectPath);
|
||||||
|
}
|
||||||
|
|
||||||
public void ConvertProject(ProjectPath project)
|
public void ConvertProject(ProjectPath project)
|
||||||
{
|
{
|
||||||
CurrentProject = project;
|
CurrentProject = project;
|
||||||
|
@ -65,6 +65,9 @@ namespace ProjectConverter
|
|||||||
case ".sln":
|
case ".sln":
|
||||||
converter.ConvertAllProjects(file);
|
converter.ConvertAllProjects(file);
|
||||||
break;
|
break;
|
||||||
|
case ".csproj":
|
||||||
|
converter.ConvertProject(file);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new NotImplementedException("unsupported file type '" + fileExt + "'");
|
throw new NotImplementedException("unsupported file type '" + fileExt + "'");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user