diff options
author | Justin Clark-Casey (justincc) | 2010-09-11 01:13:08 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-09-11 01:13:08 +0100 |
commit | 7e65590a55ba575d0086bdfc25addaf1051d799b (patch) | |
tree | 1dc11683170d45d80d7aab6eefdfcc836d3e773b /Prebuild/src/Core/Targets/VS2010Target.cs | |
parent | Make it clear that the "create region" command will reference ini files in th... (diff) | |
download | opensim-SC-7e65590a55ba575d0086bdfc25addaf1051d799b.zip opensim-SC-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.gz opensim-SC-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.bz2 opensim-SC-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.xz |
Update Prebuild.exe with Prebuild r323 + an existing OpenSim specific nant hack to correctly clean up chosen OpenSim exes and dlls in bin/ on a "nant clean"
Source code is included for reference. This can go away again once Prebuild is updated with a more general mechanism for cleaning up files.
The Prebuild source code here can be built with nant, or regnerated for other tools using the prebuild at {root}/bin/Prebuild.exe
Diffstat (limited to 'Prebuild/src/Core/Targets/VS2010Target.cs')
-rw-r--r-- | Prebuild/src/Core/Targets/VS2010Target.cs | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/Prebuild/src/Core/Targets/VS2010Target.cs b/Prebuild/src/Core/Targets/VS2010Target.cs new file mode 100644 index 0000000..ea9f736 --- /dev/null +++ b/Prebuild/src/Core/Targets/VS2010Target.cs | |||
@@ -0,0 +1,138 @@ | |||
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 | } | ||