VS2005Target.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. #region BSD License
  2. /*
  3. Copyright (c) 2004 Matthew Holmes ([email protected])
  4. Redistribution and use in source and binary forms, with or without modification, are permitted
  5. provided that the following conditions are met:
  6. * Redistributions of source code must retain the above copyright notice, this list of conditions
  7. and the following disclaimer.
  8. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions
  9. and the following disclaimer in the documentation and/or other materials provided with the
  10. distribution.
  11. * The name of the author may not be used to endorse or promote products derived from this software
  12. without specific prior written permission.
  13. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
  14. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  15. ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  16. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  17. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  18. OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  19. IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  20. */
  21. #endregion
  22. using System;
  23. using System.IO;
  24. using System.Text;
  25. using Prebuild.Core.Attributes;
  26. using Prebuild.Core.Interfaces;
  27. using Prebuild.Core.Nodes;
  28. using Prebuild.Core.Utilities;
  29. namespace Prebuild.Core.Targets
  30. {
  31. /// <summary>
  32. ///
  33. /// </summary>
  34. [Target("vs2005")]
  35. public class VS2005Target : VSGenericTarget
  36. {
  37. #region Inner Classes
  38. #endregion
  39. #region Fields
  40. string solutionVersion = "9.00";
  41. string productVersion = "8.0.50727";
  42. string schemaVersion = "2.0";
  43. string versionName = "Visual C# 2005";
  44. string name = "vs2005";
  45. VSVersion version = VSVersion.VS80;
  46. public override string SolutionTag
  47. {
  48. get { return "# Visual Studio 2005"; }
  49. }
  50. protected override string GetToolsVersionXml(FrameworkVersion frameworkVersion)
  51. {
  52. return string.Empty;
  53. }
  54. /// <summary>
  55. /// Gets or sets the solution version.
  56. /// </summary>
  57. /// <value>The solution version.</value>
  58. public override string SolutionVersion
  59. {
  60. get
  61. {
  62. return solutionVersion;
  63. }
  64. }
  65. /// <summary>
  66. /// Gets or sets the product version.
  67. /// </summary>
  68. /// <value>The product version.</value>
  69. public override string ProductVersion
  70. {
  71. get
  72. {
  73. return productVersion;
  74. }
  75. }
  76. /// <summary>
  77. /// Gets or sets the schema version.
  78. /// </summary>
  79. /// <value>The schema version.</value>
  80. public override string SchemaVersion
  81. {
  82. get
  83. {
  84. return schemaVersion;
  85. }
  86. }
  87. /// <summary>
  88. /// Gets or sets the name of the version.
  89. /// </summary>
  90. /// <value>The name of the version.</value>
  91. public override string VersionName
  92. {
  93. get
  94. {
  95. return versionName;
  96. }
  97. }
  98. /// <summary>
  99. /// Gets or sets the version.
  100. /// </summary>
  101. /// <value>The version.</value>
  102. public override VSVersion Version
  103. {
  104. get
  105. {
  106. return version;
  107. }
  108. }
  109. /// <summary>
  110. /// Gets the name.
  111. /// </summary>
  112. /// <value>The name.</value>
  113. public override string Name
  114. {
  115. get
  116. {
  117. return name;
  118. }
  119. }
  120. #endregion
  121. #region Constructors
  122. /// <summary>
  123. /// Initializes a new instance of the <see cref="VS2005Target"/> class.
  124. /// </summary>
  125. public VS2005Target()
  126. : base()
  127. {
  128. }
  129. #endregion
  130. }
  131. }