Beispiel #1
0
        public Solution()
        {
            NugetSpecFolder  = "packaging/nuget";
            SourceFolder     = "src";
            BuildCommand     = "rake";
            FastBuildCommand = "rake compile";
            Mode             = SolutionMode.Ripple;
            Groups           = new List <DependencyGroup>();
            Nuspecs          = new List <NuspecMap>();

            AddFeed(Feed.Fubu);
            AddFeed(Feed.NuGetV2);

            UseStorage(NugetStorage.Basic());
            UseFeedService(Model.FeedService.Basic(this));
            UseCache(NugetFolderCache.DefaultFor(this));
            UsePublisher(PublishingService.For(Mode));
            UseBuilder(new NugetPlanBuilder());

            //_cacheLocalPath = Cache.LocalPath;

            RestoreSettings = new RestoreSettings();
            NuspecSettings  = new NuspecSettings();
            References      = new ReferenceSettings();

            Reset();
        }
Beispiel #2
0
        public VersionConstraint ConstraintFor(Dependency dependency)
        {
            if (dependency.VersionConstraint != null)
            {
                return(dependency.VersionConstraint);
            }

            return(NuspecSettings.ConstraintFor(dependency.Mode));
        }
Beispiel #3
0
        public Solution()
        {
            NugetSpecFolder = "packaging/nuget";
            SourceFolder    = "src";
            Mode            = SolutionMode.Ripple;
            Groups          = new List <DependencyGroup>();
            Nuspecs         = new List <NuspecMap>();

            AddFeed(Feed.Fubu);
            AddFeed(Feed.NuGetV2);

            UseStorage(NugetStorage.Basic());
            UseFeedService(Model.FeedService.Basic(this));
            UseCache(NugetFolderCache.DefaultFor(this));
            UsePublisher(PublishingService.Basic());
            UseBuilder(new NugetPlanBuilder());
            UseValidator(new SolutionValidator());

            RestoreSettings = new RestoreSettings();
            NuspecSettings  = new NuspecSettings();

            Reset();
        }
Beispiel #4
0
        public Solution()
        {
            NugetSpecFolder = "packaging/nuget";
            SourceFolder = "src";
            Mode = SolutionMode.Ripple;
            Groups = new List<DependencyGroup>();
            Nuspecs = new List<NuspecMap>();

            AddFeed(Feed.Fubu);
            AddFeed(Feed.NuGetV2);

            UseStorage(NugetStorage.Basic());
            UseFeedService(Model.FeedService.Basic(this));
            UseCache(NugetFolderCache.DefaultFor(this));
            UsePublisher(PublishingService.Basic());
            UseBuilder(new NugetPlanBuilder());
            UseValidator(new SolutionValidator());

            RestoreSettings = new RestoreSettings();
            NuspecSettings = new NuspecSettings();

            Reset();
        }
 public void constraint_for_float()
 {
     var settings = new NuspecSettings();
     settings.ConstraintFor(UpdateMode.Float).ShouldEqual(settings.Float);
 }
 public void defaults()
 {
     var settings = new NuspecSettings();
     settings.Float.ShouldEqual(VersionConstraint.DefaultFloat);
     settings.Fixed.ShouldEqual(VersionConstraint.DefaultFixed);
 }
Beispiel #7
0
        public Solution()
        {
            NugetSpecFolder = "packaging/nuget";
            SourceFolder = "src";
            BuildCommand = "rake";
            FastBuildCommand = "rake compile";
            Mode = SolutionMode.Ripple;
            Groups = new List<DependencyGroup>();
            Nuspecs = new List<NuspecMap>();

            AddFeed(Feed.Fubu);
            AddFeed(Feed.NuGetV2);

            UseStorage(NugetStorage.Basic());
            UseFeedService(Model.FeedService.Basic(this));
            UseCache(NugetFolderCache.DefaultFor(this));
            UsePublisher(PublishingService.For(Mode));
            UseBuilder(new NugetPlanBuilder());

            //_cacheLocalPath = Cache.LocalPath;

            RestoreSettings = new RestoreSettings();
            NuspecSettings = new NuspecSettings();
            References = new ReferenceSettings();

            Reset();
        }
Beispiel #8
0
 protected bool Equals(NuspecSettings other)
 {
     return Float.Equals(other.Float) && Fixed.Equals(other.Fixed);
 }
 protected bool Equals(NuspecSettings other)
 {
     return(Float.Equals(other.Float) && Fixed.Equals(other.Fixed));
 }