From ffc1428dff8e71952b43001a8fc6223daeeb5bcf Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Thu, 20 Dec 2007 11:30:56 +0000
Subject: * Added prototypical VS2008 target
---
Prebuild/src/Core/Targets/VS2005Target.cs | 47 +++++++++++++++----------------
1 file changed, 23 insertions(+), 24 deletions(-)
(limited to 'Prebuild/src/Core/Targets/VS2005Target.cs')
diff --git a/Prebuild/src/Core/Targets/VS2005Target.cs b/Prebuild/src/Core/Targets/VS2005Target.cs
index f01906b..bd56beb 100644
--- a/Prebuild/src/Core/Targets/VS2005Target.cs
+++ b/Prebuild/src/Core/Targets/VS2005Target.cs
@@ -230,45 +230,48 @@ namespace Prebuild.Core.Targets
#region Fields
- string solutionVersion = "9.00";
- string productVersion = "8.0.50727";
string schemaVersion = "2.0";
- string versionName = "Visual C# 2005";
VSVersion version = VSVersion.VS80;
Hashtable tools;
Kernel kernel;
+
+ protected virtual string ToolsVersionXml
+ {
+ get
+ {
+ return String.Empty;
+ }
+ }
- ///
+ protected virtual string SolutionTag
+ {
+ get { return "# Visual Studio 2005"; }
+ }
+
+ ///
/// Gets or sets the solution version.
///
/// The solution version.
- protected string SolutionVersion
+ protected virtual string SolutionVersion
{
get
{
- return this.solutionVersion;
- }
- set
- {
- this.solutionVersion = value;
+ return "9.00";
}
}
///
/// Gets or sets the product version.
///
/// The product version.
- protected string ProductVersion
+ protected virtual string ProductVersion
{
get
{
- return this.productVersion;
- }
- set
- {
- this.productVersion = value;
+ return "8.0.50727";
}
}
+
///
/// Gets or sets the schema version.
///
@@ -288,15 +291,11 @@ namespace Prebuild.Core.Targets
/// Gets or sets the name of the version.
///
/// The name of the version.
- protected string VersionName
+ protected virtual string VersionName
{
get
{
- return this.versionName;
- }
- set
- {
- this.versionName = value;
+ return "Visual C# 2005";
}
}
///
@@ -378,7 +377,7 @@ namespace Prebuild.Core.Targets
#region Project File
using (ps)
{
- ps.WriteLine("");
+ ps.WriteLine("", ToolsVersionXml );
//ps.WriteLine(" <{0}", toolInfo.XMLTag);
ps.WriteLine(" ");
ps.WriteLine(" Local");
@@ -707,7 +706,7 @@ namespace Prebuild.Core.Targets
using (ss)
{
ss.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}", this.SolutionVersion);
- ss.WriteLine("# Visual Studio 2005");
+ ss.WriteLine(SolutionTag);
foreach (ProjectNode project in solution.Projects)
{
if (!tools.ContainsKey(project.Language))
--
cgit v1.1