aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild/src/Core/Targets/VS2008Target.cs
diff options
context:
space:
mode:
authorlbsa712009-02-19 14:35:11 +0000
committerlbsa712009-02-19 14:35:11 +0000
commit40d88ce9057babd28074afe803086bf415527dca (patch)
tree3fb229561ebd2c8a49c1839e630275dd8b0c7a3b /Prebuild/src/Core/Targets/VS2008Target.cs
parent* Reverted Prebuild commit due to strange run-time errors. (diff)
downloadopensim-SC-40d88ce9057babd28074afe803086bf415527dca.zip
opensim-SC-40d88ce9057babd28074afe803086bf415527dca.tar.gz
opensim-SC-40d88ce9057babd28074afe803086bf415527dca.tar.bz2
opensim-SC-40d88ce9057babd28074afe803086bf415527dca.tar.xz
* Reverted the revert, as it seems the problem was the 1.0.* in the separate projects.
Diffstat (limited to 'Prebuild/src/Core/Targets/VS2008Target.cs')
-rw-r--r--Prebuild/src/Core/Targets/VS2008Target.cs152
1 files changed, 114 insertions, 38 deletions
diff --git a/Prebuild/src/Core/Targets/VS2008Target.cs b/Prebuild/src/Core/Targets/VS2008Target.cs
index 88bb5e6..f30017b 100644
--- a/Prebuild/src/Core/Targets/VS2008Target.cs
+++ b/Prebuild/src/Core/Targets/VS2008Target.cs
@@ -1,56 +1,132 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections;
3using System.Collections.Specialized;
4using System.IO;
3using System.Text; 5using System.Text;
6
4using Prebuild.Core.Attributes; 7using Prebuild.Core.Attributes;
8using Prebuild.Core.Interfaces;
9using Prebuild.Core.Nodes;
10using Prebuild.Core.Utilities;
11using System.CodeDom.Compiler;
5 12
6namespace Prebuild.Core.Targets 13namespace Prebuild.Core.Targets
7{ 14{
8 [Target("vs2008")]
9 public class VS2008Target : VS2005Target
10 {
11 protected override string SolutionTag
12 {
13 get { return "# Visual Studio 2008"; }
14 }
15 15
16 protected override string SolutionVersion 16 /// <summary>
17 { 17 ///
18 get 18 /// </summary>
19 { 19 [Target("vs2008")]
20 return "10.00"; 20 public class VS2008Target : VSGenericTarget
21 } 21 {
22 } 22 #region Fields
23 string solutionVersion = "10.00";
24 string productVersion = "9.0.21022";
25 string schemaVersion = "2.0";
26 string versionName = "Visual Studio 2008";
27 string name = "vs2008";
28 VSVersion version = VSVersion.VS90;
23 29
24 protected override string VersionName 30 Hashtable tools;
25 { 31 Kernel kernel;
26 get
27 {
28 return "Visual C# 2008";
29 }
30 }
31 32
32 protected override string ToolsVersionXml 33 /// <summary>
33 { 34 /// Gets or sets the solution version.
34 get 35 /// </summary>
35 { 36 /// <value>The solution version.</value>
36 return " ToolsVersion=\"3.5\""; 37 public override string SolutionVersion
37 } 38 {
38 } 39 get
40 {
41 return solutionVersion;
42 }
43 }
44 /// <summary>
45 /// Gets or sets the product version.
46 /// </summary>
47 /// <value>The product version.</value>
48 public override string ProductVersion
49 {
50 get
51 {
52 return productVersion;
53 }
54 }
55 /// <summary>
56 /// Gets or sets the schema version.
57 /// </summary>
58 /// <value>The schema version.</value>
59 public override string SchemaVersion
60 {
61 get
62 {
63 return schemaVersion;
64 }
65 }
66 /// <summary>
67 /// Gets or sets the name of the version.
68 /// </summary>
69 /// <value>The name of the version.</value>
70 public override string VersionName
71 {
72 get
73 {
74 return versionName;
75 }
76 }
77 /// <summary>
78 /// Gets or sets the version.
79 /// </summary>
80 /// <value>The version.</value>
81 public override VSVersion Version
82 {
83 get
84 {
85 return version;
86 }
87 }
88 /// <summary>
89 /// Gets the name.
90 /// </summary>
91 /// <value>The name.</value>
92 public override string Name
93 {
94 get
95 {
96 return name;
97 }
98 }
39 99
40 protected override string ProductVersion 100 protected override string GetToolsVersionXml(FrameworkVersion frameworkVersion)
41 { 101 {
42 get 102 switch (frameworkVersion)
43 { 103 {
44 return "9.0.21022"; 104 case FrameworkVersion.v3_5:
105 return "ToolsVersion=\"3.5\"";
106 case FrameworkVersion.v3_0:
107 return "ToolsVersion=\"3.0\"";
108 default:
109 return "ToolsVersion=\"2.0\"";
45 } 110 }
46 } 111 }
47 112
48 public override string Name 113 public override string SolutionTag
49 { 114 {
50 get 115 get { return "# Visual Studio 2008"; }
51 {
52 return "vs2008";
53 }
54 } 116 }
55 } 117
118 #endregion
119
120 #region Constructors
121
122 /// <summary>
123 /// Initializes a new instance of the <see cref="VS2005Target"/> class.
124 /// </summary>
125 public VS2008Target()
126 : base()
127 {
128 }
129
130 #endregion
131 }
56} 132}