diff options
Diffstat (limited to 'Prebuild/src/Core/Targets/VS2005Target.cs')
-rw-r--r-- | Prebuild/src/Core/Targets/VS2005Target.cs | 47 |
1 files changed, 23 insertions, 24 deletions
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 | |||
230 | 230 | ||
231 | #region Fields | 231 | #region Fields |
232 | 232 | ||
233 | string solutionVersion = "9.00"; | ||
234 | string productVersion = "8.0.50727"; | ||
235 | string schemaVersion = "2.0"; | 233 | string schemaVersion = "2.0"; |
236 | string versionName = "Visual C# 2005"; | ||
237 | VSVersion version = VSVersion.VS80; | 234 | VSVersion version = VSVersion.VS80; |
238 | 235 | ||
239 | Hashtable tools; | 236 | Hashtable tools; |
240 | Kernel kernel; | 237 | Kernel kernel; |
238 | |||
239 | protected virtual string ToolsVersionXml | ||
240 | { | ||
241 | get | ||
242 | { | ||
243 | return String.Empty; | ||
244 | } | ||
245 | } | ||
241 | 246 | ||
242 | /// <summary> | 247 | protected virtual string SolutionTag |
248 | { | ||
249 | get { return "# Visual Studio 2005"; } | ||
250 | } | ||
251 | |||
252 | /// <summary> | ||
243 | /// Gets or sets the solution version. | 253 | /// Gets or sets the solution version. |
244 | /// </summary> | 254 | /// </summary> |
245 | /// <value>The solution version.</value> | 255 | /// <value>The solution version.</value> |
246 | protected string SolutionVersion | 256 | protected virtual string SolutionVersion |
247 | { | 257 | { |
248 | get | 258 | get |
249 | { | 259 | { |
250 | return this.solutionVersion; | 260 | return "9.00"; |
251 | } | ||
252 | set | ||
253 | { | ||
254 | this.solutionVersion = value; | ||
255 | } | 261 | } |
256 | } | 262 | } |
257 | /// <summary> | 263 | /// <summary> |
258 | /// Gets or sets the product version. | 264 | /// Gets or sets the product version. |
259 | /// </summary> | 265 | /// </summary> |
260 | /// <value>The product version.</value> | 266 | /// <value>The product version.</value> |
261 | protected string ProductVersion | 267 | protected virtual string ProductVersion |
262 | { | 268 | { |
263 | get | 269 | get |
264 | { | 270 | { |
265 | return this.productVersion; | 271 | return "8.0.50727"; |
266 | } | ||
267 | set | ||
268 | { | ||
269 | this.productVersion = value; | ||
270 | } | 272 | } |
271 | } | 273 | } |
274 | |||
272 | /// <summary> | 275 | /// <summary> |
273 | /// Gets or sets the schema version. | 276 | /// Gets or sets the schema version. |
274 | /// </summary> | 277 | /// </summary> |
@@ -288,15 +291,11 @@ namespace Prebuild.Core.Targets | |||
288 | /// Gets or sets the name of the version. | 291 | /// Gets or sets the name of the version. |
289 | /// </summary> | 292 | /// </summary> |
290 | /// <value>The name of the version.</value> | 293 | /// <value>The name of the version.</value> |
291 | protected string VersionName | 294 | protected virtual string VersionName |
292 | { | 295 | { |
293 | get | 296 | get |
294 | { | 297 | { |
295 | return this.versionName; | 298 | return "Visual C# 2005"; |
296 | } | ||
297 | set | ||
298 | { | ||
299 | this.versionName = value; | ||
300 | } | 299 | } |
301 | } | 300 | } |
302 | /// <summary> | 301 | /// <summary> |
@@ -378,7 +377,7 @@ namespace Prebuild.Core.Targets | |||
378 | #region Project File | 377 | #region Project File |
379 | using (ps) | 378 | using (ps) |
380 | { | 379 | { |
381 | ps.WriteLine("<Project DefaultTargets=\"Build\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">"); | 380 | ps.WriteLine("<Project DefaultTargets=\"Build\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\"{0}>", ToolsVersionXml ); |
382 | //ps.WriteLine(" <{0}", toolInfo.XMLTag); | 381 | //ps.WriteLine(" <{0}", toolInfo.XMLTag); |
383 | ps.WriteLine(" <PropertyGroup>"); | 382 | ps.WriteLine(" <PropertyGroup>"); |
384 | ps.WriteLine(" <ProjectType>Local</ProjectType>"); | 383 | ps.WriteLine(" <ProjectType>Local</ProjectType>"); |
@@ -707,7 +706,7 @@ namespace Prebuild.Core.Targets | |||
707 | using (ss) | 706 | using (ss) |
708 | { | 707 | { |
709 | ss.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}", this.SolutionVersion); | 708 | ss.WriteLine("Microsoft Visual Studio Solution File, Format Version {0}", this.SolutionVersion); |
710 | ss.WriteLine("# Visual Studio 2005"); | 709 | ss.WriteLine(SolutionTag); |
711 | foreach (ProjectNode project in solution.Projects) | 710 | foreach (ProjectNode project in solution.Projects) |
712 | { | 711 | { |
713 | if (!tools.ContainsKey(project.Language)) | 712 | if (!tools.ContainsKey(project.Language)) |