348a844ad40e4f4574507cf6eed4b38e0e6f9460
[mono.git] / mcs / class / Microsoft.Build / Microsoft.Build.Evaluation / ProjectCollection.cs
1 //
2 // ProjectCollection.cs
3 //
4 // Author:
5 //   Leszek Ciesielski (skolima@gmail.com)
6 //   Rolf Bjarne Kvinge (rolf@xamarin.com)
7 //
8 // (C) 2011 Leszek Ciesielski
9 // Copyright (C) 2011 Xamarin Inc.
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 using Microsoft.Build.Construction;
32 using Microsoft.Build.Framework;
33 using Microsoft.Build.Logging;
34 using System;
35 using System.Collections.Generic;
36
37 namespace Microsoft.Build.Evaluation
38 {
39         public class ProjectCollection : IDisposable
40         {
41                 public ProjectCollection ()
42                 {
43                 }
44
45                 public ProjectCollection (IDictionary<string, string> globalProperties)
46                 : this (globalProperties, null, ToolsetDefinitionLocations.Registry | ToolsetDefinitionLocations.ConfigurationFile)
47                 {
48                 }
49
50                 public ProjectCollection (ToolsetDefinitionLocations toolsetDefinitionLocations)
51                 : this (null, null, toolsetDefinitionLocations)
52                 {
53                 }
54
55                 public ProjectCollection (IDictionary<string, string> globalProperties, IEnumerable<ILogger> loggers,
56                                 ToolsetDefinitionLocations toolsetDefinitionLocations)
57                 : this (globalProperties, loggers, null, toolsetDefinitionLocations, 1, false)
58                 {
59                 }
60
61                 public ProjectCollection (IDictionary<string, string> globalProperties,
62                                 IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
63                                 ToolsetDefinitionLocations toolsetDefinitionLocations,
64                                 int maxNodeCount, bool onlyLogCriticalEvents)
65                 {
66                         throw new NotImplementedException ();
67                 }
68
69                 public static string Escape (string unescapedString)
70                 {
71                         return unescapedString;
72                 }
73
74                 public static ProjectCollection GlobalProjectCollection {
75                         get { return globalProjectCollection; }
76                 }
77
78                 public void Dispose ()
79                 {
80                         Dispose (true);
81                         GC.SuppressFinalize (this);
82                 }
83
84                 protected virtual void Dispose (bool disposing)
85                 {
86                         if (disposing) {
87                         }
88                 }
89
90                 static ProjectCollection globalProjectCollection = new ProjectCollection ();
91
92                 public ICollection<Project> GetLoadedProjects (string fullPath)
93                 {
94                         throw new NotImplementedException ();
95                 }
96
97                 public ToolsetDefinitionLocations ToolsetLocations {
98                         get { throw new NotImplementedException (); }
99                 }
100
101                 public ICollection<Toolset> Toolsets {
102                         get { throw new NotImplementedException (); }
103                 }
104
105                 public void UnloadAllProjects ()
106                 {
107                         throw new NotImplementedException ();
108                 }
109
110                 public void UnloadProject (Project project)
111                 {
112                         throw new NotImplementedException ();
113                 }
114
115                 public void UnloadProject (ProjectRootElement projectRootElement)
116                 {
117                         throw new NotImplementedException ();
118                 }
119
120                 public static Version Version {
121                         get { throw new NotImplementedException (); }
122                 }
123         }
124 }