PageRenderTime 43ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/IronPython_Main/Tools/IronStudio/IronStudio/VisualStudio/Project/ConfigurationProperties.cs

#
C# | 64 lines | 38 code | 7 blank | 19 comment | 0 complexity | 68ede5c7a6fe00df518ddf9efab0a795 MD5 | raw file
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
  1. /* ****************************************************************************
  2. *
  3. * Copyright (c) Microsoft Corporation.
  4. *
  5. * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
  6. * copy of the license can be found in the License.html file at the root of this distribution. If
  7. * you cannot locate the Apache License, Version 2.0, please send an email to
  8. * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
  9. * by the terms of the Apache License, Version 2.0.
  10. *
  11. * You must not remove this notice, or any other, from this software.
  12. *
  13. * ***************************************************************************/
  14. using System;
  15. using System.Runtime.InteropServices;
  16. namespace Microsoft.VisualStudio.Project
  17. {
  18. /// <summary>
  19. /// Defines the config dependent properties exposed through automation
  20. /// </summary>
  21. [ComVisible(true)]
  22. [Guid("21f73a8f-91d7-4085-9d4f-c48ee235ee5b")]
  23. public interface IProjectConfigProperties
  24. {
  25. string OutputPath { get; set; }
  26. }
  27. /// <summary>
  28. /// Implements the configuration dependent properties interface
  29. /// </summary>
  30. [CLSCompliant(false), ComVisible(true)]
  31. [ClassInterface(ClassInterfaceType.None)]
  32. public class ProjectConfigProperties : IProjectConfigProperties
  33. {
  34. #region fields
  35. private ProjectConfig projectConfig;
  36. #endregion
  37. #region ctors
  38. public ProjectConfigProperties(ProjectConfig projectConfig)
  39. {
  40. this.projectConfig = projectConfig;
  41. }
  42. #endregion
  43. #region IProjectConfigProperties Members
  44. public virtual string OutputPath
  45. {
  46. get
  47. {
  48. return this.projectConfig.GetConfigurationProperty(BuildPropertyPageTag.OutputPath.ToString(), true);
  49. }
  50. set
  51. {
  52. this.projectConfig.SetConfigurationProperty(BuildPropertyPageTag.OutputPath.ToString(), value);
  53. }
  54. }
  55. #endregion
  56. }
  57. }