Cosmos/source2/VSIP/MPF/9.0/Src/CSharp/ConfigurationProperties.cs
kudzu_cp 7003fe2c9e
2009-05-28 14:33:45 +00:00

52 lines
1.2 KiB
C#

/// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Runtime.InteropServices;
namespace Microsoft.VisualStudio.Project
{
/// <summary>
/// Defines the config dependent properties exposed through automation
/// </summary>
[ComVisible(true)]
[Guid("21f73a8f-91d7-4085-9d4f-c48ee235ee5b")]
public interface IProjectConfigProperties
{
string OutputPath { get; set; }
}
/// <summary>
/// Implements the configuration dependent properties interface
/// </summary>
[CLSCompliant(false), ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
public class ProjectConfigProperties : IProjectConfigProperties
{
#region fields
private ProjectConfig projectConfig;
#endregion
#region ctors
public ProjectConfigProperties(ProjectConfig projectConfig)
{
this.projectConfig = projectConfig;
}
#endregion
#region IProjectConfigProperties Members
public virtual string OutputPath
{
get
{
return this.projectConfig.GetConfigurationProperty(BuildPropertyPageTag.OutputPath.ToString(), true);
}
set
{
this.projectConfig.SetConfigurationProperty(BuildPropertyPageTag.OutputPath.ToString(), value);
}
}
#endregion
}
}