Skip to content

Commit

Permalink
Revert "Disabled the ProjectFactory type"
Browse files Browse the repository at this point in the history
This reverts commit 9d1f321 - bad branch :P
  • Loading branch information
grendello committed Apr 22, 2011
1 parent 9d1f321 commit 113f365
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions src/CommandLine/Commands/ProjectFactory.cs
Expand Up @@ -4,69 +4,13 @@
using System.Linq;
using System.Runtime.Versioning;
using System.Xml.Linq;
#if SUPPORTED_ON_MONO
using Microsoft.Build.Evaluation;
using Microsoft.Build.Execution;
using Microsoft.Build.Framework;
using Microsoft.Build.Logging;
#endif
using NuGet.Common;

namespace NuGet.Commands {
#if !SUPPORTED_ON_MONO
class Project
{
public Project (string path)
{}
}

class ProjectFactory : IPropertyProvider
{
public bool IncludeSymbols {
get { throw GetNotSupported (); }
set { throw GetNotSupported (); }
}

public Dictionary<string, string> Properties {
get { throw GetNotSupported (); }
}

public bool IsTool {
get { throw GetNotSupported (); }
set { throw GetNotSupported (); }
}

public ILogger Logger {
get { throw GetNotSupported (); }
set { throw GetNotSupported (); }
}

public PackageBuilder CreateBuilder ()
{
throw GetNotSupported ();
}

public ProjectFactory (string path)
{
throw GetNotSupported ();
}

public ProjectFactory (Project project)
{
throw GetNotSupported ();
}

dynamic IPropertyProvider.GetPropertyValue (string propertyName)
{
throw GetNotSupported ();
}

NotSupportedException GetNotSupported ()
{
return new NotSupportedException ("At this point Mono lacks implementation of the Microsoft.Build assembly and the ProjectFactory command is not available.");
}
}
#else
internal class ProjectFactory : IPropertyProvider {
private readonly Project _project;
private FrameworkName _frameworkName;
Expand Down Expand Up @@ -604,5 +548,4 @@ private class ReverseTransformFormFile : IPackageFile {
}
}
}
#endif
}

0 comments on commit 113f365

Please sign in to comment.