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/VS2008Target.cs | |
parent | Make it clear that the "create region" command will reference ini files in th... (diff) | |
download | opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.zip opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.gz opensim-SC_OLD-7e65590a55ba575d0086bdfc25addaf1051d799b.tar.bz2 opensim-SC_OLD-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 '')
-rw-r--r-- | Prebuild/src/Core/Targets/VS2008Target.cs | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/Prebuild/src/Core/Targets/VS2008Target.cs b/Prebuild/src/Core/Targets/VS2008Target.cs new file mode 100644 index 0000000..fee4f7f --- /dev/null +++ b/Prebuild/src/Core/Targets/VS2008Target.cs | |||
@@ -0,0 +1,127 @@ | |||
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("vs2008")] | ||
18 | public class VS2008Target : VSGenericTarget | ||
19 | { | ||
20 | #region Fields | ||
21 | string solutionVersion = "10.00"; | ||
22 | string productVersion = "9.0.21022"; | ||
23 | string schemaVersion = "2.0"; | ||
24 | string versionName = "Visual Studio 2008"; | ||
25 | string name = "vs2008"; | ||
26 | VSVersion version = VSVersion.VS90; | ||
27 | |||
28 | /// <summary> | ||
29 | /// Gets or sets the solution version. | ||
30 | /// </summary> | ||
31 | /// <value>The solution version.</value> | ||
32 | public override string SolutionVersion | ||
33 | { | ||
34 | get | ||
35 | { | ||
36 | return solutionVersion; | ||
37 | } | ||
38 | } | ||
39 | /// <summary> | ||
40 | /// Gets or sets the product version. | ||
41 | /// </summary> | ||
42 | /// <value>The product version.</value> | ||
43 | public override string ProductVersion | ||
44 | { | ||
45 | get | ||
46 | { | ||
47 | return productVersion; | ||
48 | } | ||
49 | } | ||
50 | /// <summary> | ||
51 | /// Gets or sets the schema version. | ||
52 | /// </summary> | ||
53 | /// <value>The schema version.</value> | ||
54 | public override string SchemaVersion | ||
55 | { | ||
56 | get | ||
57 | { | ||
58 | return schemaVersion; | ||
59 | } | ||
60 | } | ||
61 | /// <summary> | ||
62 | /// Gets or sets the name of the version. | ||
63 | /// </summary> | ||
64 | /// <value>The name of the version.</value> | ||
65 | public override string VersionName | ||
66 | { | ||
67 | get | ||
68 | { | ||
69 | return versionName; | ||
70 | } | ||
71 | } | ||
72 | /// <summary> | ||
73 | /// Gets or sets the version. | ||
74 | /// </summary> | ||
75 | /// <value>The version.</value> | ||
76 | public override VSVersion Version | ||
77 | { | ||
78 | get | ||
79 | { | ||
80 | return version; | ||
81 | } | ||
82 | } | ||
83 | /// <summary> | ||
84 | /// Gets the name. | ||
85 | /// </summary> | ||
86 | /// <value>The name.</value> | ||
87 | public override string Name | ||
88 | { | ||
89 | get | ||
90 | { | ||
91 | return name; | ||
92 | } | ||
93 | } | ||
94 | |||
95 | protected override string GetToolsVersionXml(FrameworkVersion frameworkVersion) | ||
96 | { | ||
97 | switch (frameworkVersion) | ||
98 | { | ||
99 | case FrameworkVersion.v3_5: | ||
100 | return "ToolsVersion=\"3.5\""; | ||
101 | case FrameworkVersion.v3_0: | ||
102 | return "ToolsVersion=\"3.0\""; | ||
103 | default: | ||
104 | return "ToolsVersion=\"2.0\""; | ||
105 | } | ||
106 | } | ||
107 | |||
108 | public override string SolutionTag | ||
109 | { | ||
110 | get { return "# Visual Studio 2008"; } | ||
111 | } | ||
112 | |||
113 | #endregion | ||
114 | |||
115 | #region Constructors | ||
116 | |||
117 | /// <summary> | ||
118 | /// Initializes a new instance of the <see cref="VS2005Target"/> class. | ||
119 | /// </summary> | ||
120 | public VS2008Target() | ||
121 | : base() | ||
122 | { | ||
123 | } | ||
124 | |||
125 | #endregion | ||
126 | } | ||
127 | } | ||