Implementation of the 2.0 session state model
[mono.git] / mcs / class / Microsoft.Build.Engine / Microsoft.Build.BuildEngine / BuildWhen.cs
index 61df15dc07925d3885904d21e9477eaa89bbc37e..80d72d1cce6b46caaa5fdd5f9f21e700273ccf67 100644 (file)
@@ -25,6 +25,8 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
+#if NET_2_0
+
 using System;
 using System.Collections;
 using System.Xml;
@@ -32,14 +34,14 @@ using System.Xml;
 namespace Microsoft.Build.BuildEngine {
        internal class BuildWhen {
                XmlAttribute            condition;
-               Project                 parentProject;
+               //Project                       parentProject;
                GroupingCollection      groupingCollection;
                XmlElement              whenElement;
        
                public BuildWhen (Project parentProject)
                {
-                       this.parentProject = parentProject;
-                       this.groupingCollection = new GroupingCollection ();
+               //      this.parentProject = parentProject;
+                       this.groupingCollection = new GroupingCollection (parentProject);
                }
                
                public void BindToXml (XmlElement whenElement)
@@ -75,3 +77,5 @@ namespace Microsoft.Build.BuildEngine {
                }
        }
 }
+
+#endif