forked from ssvaidya/VSProjectConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVSProjectCreator.cs
35 lines (33 loc) · 1.09 KB
/
VSProjectCreator.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ProjectConverter
{
public class VSProjectCreator
{
/// <summary>
/// Factory Method to determine the appropriate version
/// of the Visual Studio Project
/// </summary>
/// <param name="ConvertTo">enumeration containing the version of Visual Studio
/// for conversion</param>
/// <returns>class instance of the IVSInfo interface</returns>
public static VSProjectVersionInfo VSProjectFactory(Versions ConvertTo)
{
switch (ConvertTo)
{
case Versions.Version9:
return new VS2008Info();
case Versions.Version10:
return new VS2010Info();
case Versions.Version11:
return new VS2012Info();
case Versions.Version12:
return new VS2013Info();
default:
return new VS2010Info();
}//switch
}//method: VSProjectFactory()
}
}