OLD | NEW |
| (Empty) |
1 /// Copyright (c) Microsoft Corporation. All rights reserved. | |
2 | |
3 using System; | |
4 using System.Runtime.InteropServices; | |
5 | |
6 namespace Microsoft.VisualStudio.Project | |
7 { | |
8 /// <summary> | |
9 /// Defines the config dependent properties exposed through automation | |
10 /// </summary> | |
11 [ComVisible(true)] | |
12 [Guid("21f73a8f-91d7-4085-9d4f-c48ee235ee5b")] | |
13 public interface IProjectConfigProperties | |
14 { | |
15 string OutputPath { get; set; } | |
16 } | |
17 | |
18 /// <summary> | |
19 /// Implements the configuration dependent properties interface | |
20 /// </summary> | |
21 [CLSCompliant(false), ComVisible(true)] | |
22 [ClassInterface(ClassInterfaceType.None)] | |
23 public class ProjectConfigProperties : IProjectConfigProperties | |
24 { | |
25 #region fields | |
26 private ProjectConfig projectConfig; | |
27 #endregion | |
28 | |
29 #region ctors | |
30 public ProjectConfigProperties(ProjectConfig projectConfig) | |
31 { | |
32 this.projectConfig = projectConfig; | |
33 } | |
34 #endregion | |
35 | |
36 #region IProjectConfigProperties Members | |
37 | |
38 public virtual string OutputPath | |
39 { | |
40 get | |
41 { | |
42 return this.projectConfig.GetConfigurationProper
ty(BuildPropertyPageTag.OutputPath.ToString(), true); | |
43 } | |
44 set | |
45 { | |
46 this.projectConfig.SetConfigurationProperty(Buil
dPropertyPageTag.OutputPath.ToString(), value); | |
47 } | |
48 } | |
49 | |
50 #endregion | |
51 } | |
52 } | |
OLD | NEW |