Beispiel #1
0
        public void RegisterPostSolutionConfiguration(string projectGuid, string config)
        {
            string id = "{" + projectGuid + "}";

            GenericEnumerableExtensions.Fill <string>(this._postSolution, FubuCore.StringExtensions.ToFormat("\t\t{0}.{1}", new object[]
            {
                id,
                config
            }));
        }
 private static void copyNugetDeclarations(ProjectPlan originalPlan, ProjectPlan testPlan, CsProjFile original, CsProjFile testProject)
 {
     GenericEnumerableExtensions.Each <string>(originalPlan.NugetDeclarations, delegate(string x)
     {
         GenericEnumerableExtensions.Fill <string>(testPlan.NugetDeclarations, x);
     });
     GenericEnumerableExtensions.Each <AssemblyReference>(from x in original.All <AssemblyReference>()
                                                          where FubuCore.StringExtensions.IsEmpty(x.HintPath)
                                                          select x, delegate(AssemblyReference x)
     {
         testProject.Add <AssemblyReference>(x.Include);
     });
 }
        private void findNugetsInOriginalRippleDeclarations(TemplatePlan plan, ProjectPlan testPlan)
        {
            string configFile = FubuCore.StringExtensions.AppendPath(FubuCore.StringExtensions.ParentDirectory(this._originalProject), new string[]
            {
                "ripple.dependencies.config"
            });

            plan.FileSystem.ReadTextFile(configFile, delegate(string line)
            {
                if (FubuCore.StringExtensions.IsNotEmpty(line))
                {
                    GenericEnumerableExtensions.Fill <string>(testPlan.NugetDeclarations, line);
                }
            });
        }
Beispiel #4
0
 public void AddProject(CsProjFile project)
 {
     GenericEnumerableExtensions.Fill <CsProjFile>(this._projects, project);
 }