diff options
Diffstat (limited to 'Prebuild/src/Core/Targets/VS2010Target.cs')
-rw-r--r-- | Prebuild/src/Core/Targets/VS2010Target.cs | 202 |
1 files changed, 103 insertions, 99 deletions
diff --git a/Prebuild/src/Core/Targets/VS2010Target.cs b/Prebuild/src/Core/Targets/VS2010Target.cs index 8772d18..b16120c 100644 --- a/Prebuild/src/Core/Targets/VS2010Target.cs +++ b/Prebuild/src/Core/Targets/VS2010Target.cs | |||
@@ -1,6 +1,4 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections; | ||
3 | using System.Collections.Specialized; | ||
4 | using System.IO; | 2 | using System.IO; |
5 | using System.Text; | 3 | using System.Text; |
6 | 4 | ||
@@ -13,98 +11,104 @@ using System.CodeDom.Compiler; | |||
13 | namespace Prebuild.Core.Targets | 11 | namespace Prebuild.Core.Targets |
14 | { | 12 | { |
15 | 13 | ||
16 | /// <summary> | 14 | /// <summary> |
17 | /// | 15 | /// |
18 | /// </summary> | 16 | /// </summary> |
19 | [Target("vs2010")] | 17 | [Target("vs2010")] |
20 | public class VS2010Target : VSGenericTarget | 18 | public class VS2010Target : VSGenericTarget |
21 | { | 19 | { |
22 | #region Fields | 20 | #region Fields |
23 | string solutionVersion = "11.00"; | 21 | |
24 | string productVersion = "9.0.21022"; | 22 | string solutionVersion = "11.00"; |
25 | string schemaVersion = "2.0"; | 23 | string productVersion = "9.0.30729"; |
26 | string versionName = "Visual Studio 2010"; | 24 | string schemaVersion = "2.0"; |
27 | string name = "vs2008"; | 25 | string versionName = "Visual Studio 2010"; |
28 | VSVersion version = VSVersion.VS10; | 26 | string name = "vs2010"; |
27 | VSVersion version = VSVersion.VS10; | ||
29 | 28 | ||
30 | Hashtable tools; | 29 | #endregion |
31 | Kernel kernel; | 30 | |
32 | 31 | #region Properties | |
33 | /// <summary> | 32 | |
34 | /// Gets or sets the solution version. | 33 | /// <summary> |
35 | /// </summary> | 34 | /// Gets or sets the solution version. |
36 | /// <value>The solution version.</value> | 35 | /// </summary> |
37 | public override string SolutionVersion | 36 | /// <value>The solution version.</value> |
38 | { | 37 | public override string SolutionVersion |
39 | get | 38 | { |
40 | { | 39 | get |
41 | return solutionVersion; | 40 | { |
42 | } | 41 | return solutionVersion; |
43 | } | 42 | } |
44 | /// <summary> | 43 | } |
45 | /// Gets or sets the product version. | 44 | |
46 | /// </summary> | 45 | /// <summary> |
47 | /// <value>The product version.</value> | 46 | /// Gets or sets the product version. |
48 | public override string ProductVersion | 47 | /// </summary> |
49 | { | 48 | /// <value>The product version.</value> |
50 | get | 49 | public override string ProductVersion |
51 | { | 50 | { |
52 | return productVersion; | 51 | get |
53 | } | 52 | { |
54 | } | 53 | return productVersion; |
55 | /// <summary> | 54 | } |
56 | /// Gets or sets the schema version. | 55 | } |
57 | /// </summary> | 56 | |
58 | /// <value>The schema version.</value> | 57 | /// <summary> |
59 | public override string SchemaVersion | 58 | /// Gets or sets the schema version. |
60 | { | 59 | /// </summary> |
61 | get | 60 | /// <value>The schema version.</value> |
62 | { | 61 | public override string SchemaVersion |
63 | return schemaVersion; | 62 | { |
64 | } | 63 | get |
65 | } | 64 | { |
66 | /// <summary> | 65 | return schemaVersion; |
67 | /// Gets or sets the name of the version. | 66 | } |
68 | /// </summary> | 67 | } |
69 | /// <value>The name of the version.</value> | 68 | |
70 | public override string VersionName | 69 | /// <summary> |
71 | { | 70 | /// Gets or sets the name of the version. |
72 | get | 71 | /// </summary> |
73 | { | 72 | /// <value>The name of the version.</value> |
74 | return versionName; | 73 | public override string VersionName |
75 | } | 74 | { |
76 | } | 75 | get |
77 | /// <summary> | 76 | { |
78 | /// Gets or sets the version. | 77 | return versionName; |
79 | /// </summary> | 78 | } |
80 | /// <value>The version.</value> | 79 | } |
81 | public override VSVersion Version | 80 | |
82 | { | 81 | /// <summary> |
83 | get | 82 | /// Gets or sets the version. |
84 | { | 83 | /// </summary> |
85 | return version; | 84 | /// <value>The version.</value> |
86 | } | 85 | public override VSVersion Version |
87 | } | 86 | { |
88 | /// <summary> | 87 | get |
89 | /// Gets the name. | 88 | { |
90 | /// </summary> | 89 | return version; |
91 | /// <value>The name.</value> | 90 | } |
92 | public override string Name | 91 | } |
93 | { | 92 | |
94 | get | 93 | /// <summary> |
95 | { | 94 | /// Gets the name. |
96 | return name; | 95 | /// </summary> |
97 | } | 96 | /// <value>The name.</value> |
98 | } | 97 | public override string Name |
98 | { | ||
99 | get | ||
100 | { | ||
101 | return name; | ||
102 | } | ||
103 | } | ||
99 | 104 | ||
100 | protected override string GetToolsVersionXml(FrameworkVersion frameworkVersion) | 105 | protected override string GetToolsVersionXml(FrameworkVersion frameworkVersion) |
101 | { | 106 | { |
102 | switch (frameworkVersion) | 107 | switch (frameworkVersion) |
103 | { | 108 | { |
104 | case FrameworkVersion.v4_0: | 109 | case FrameworkVersion.v4_0: |
105 | return "ToolsVersion=\"4.0\""; | ||
106 | case FrameworkVersion.v3_5: | 110 | case FrameworkVersion.v3_5: |
107 | return "ToolsVersion=\"3.5\""; | 111 | return "ToolsVersion=\"4.0\""; |
108 | case FrameworkVersion.v3_0: | 112 | case FrameworkVersion.v3_0: |
109 | return "ToolsVersion=\"3.0\""; | 113 | return "ToolsVersion=\"3.0\""; |
110 | default: | 114 | default: |
@@ -117,18 +121,18 @@ namespace Prebuild.Core.Targets | |||
117 | get { return "# Visual Studio 2010"; } | 121 | get { return "# Visual Studio 2010"; } |
118 | } | 122 | } |
119 | 123 | ||
120 | #endregion | 124 | #endregion |
121 | 125 | ||
122 | #region Constructors | 126 | #region Constructors |
123 | 127 | ||
124 | /// <summary> | 128 | /// <summary> |
125 | /// Initializes a new instance of the <see cref="VS2010Target"/> class. | 129 | /// Initializes a new instance of the <see cref="VS2005Target"/> class. |
126 | /// </summary> | 130 | /// </summary> |
127 | public VS2010Target() | 131 | public VS2010Target() |
128 | : base() | 132 | : base() |
129 | { | 133 | { |
130 | } | 134 | } |
131 | 135 | ||
132 | #endregion | 136 | #endregion |
133 | } | 137 | } |
134 | } | 138 | } |