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