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