mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-23 06:18:54 +00:00
52 lines
1.2 KiB
C#
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
|
|
}
|
|
}
|