當前位置: 首頁>>代碼示例>>C#>>正文


C# Solution.FindDependency方法代碼示例

本文整理匯總了C#中ripple.Model.Solution.FindDependency方法的典型用法代碼示例。如果您正苦於以下問題:C# Solution.FindDependency方法的具體用法?C# Solution.FindDependency怎麽用?C# Solution.FindDependency使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ripple.Model.Solution的用法示例。


在下文中一共展示了Solution.FindDependency方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: SetUp

        public void SetUp()
        {
            theScenario = SolutionGraphScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.Publishes("Something");
                    test.Publishes("SomeProject");

                    test.SolutionDependency("Bottles", "1.1.0.0", UpdateMode.Fixed);
                    test.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Float);
                    test.SolutionDependency("FubuLocalization", "1.8.0.0", UpdateMode.Fixed);

                    test.LocalDependency("Bottles", "1.1.0.255");
                    test.LocalDependency("FubuCore", "1.0.1.244");
                    test.LocalDependency("FubuLocalization", "1.8.0.0");

                    test.ProjectDependency("SomeProject", "Bottles");
                    test.ProjectDependency("SomeProject", "FubuCore");
                    test.ProjectDependency("SomeProject", "FubuLocalization");

                    test.ProjectDependency("JustToBeComplicated", "FubuMVC.Core");
                });
            });

            theSolution = theScenario.Find("Test");

            // Map Something.nuspec to the "JustToBeComplicated" project
            theSolution.Nuspecs.Add(new NuspecMap { File = "Something.nuspec", Project = "JustToBeComplicated"});

            var someProject = theSolution.FindProject("SomeProject");
            var justToBeComplicated = theSolution.FindProject("JustToBeComplicated");

            someProject.AddProjectReference(justToBeComplicated);

            theSolution.FindDependency("FubuLocalization").Constraint = "Current,NextMinor";

            RippleOperation
                .With(theSolution, false)
                .Execute<CreatePackagesInput, LocalNugetCommand>(input =>
                {
                    input.VersionFlag = "1.0.1.244";
                    input.UpdateDependenciesFlag = true;
                });
        }
開發者ID:4lexm,項目名稱:ripple,代碼行數:45,代碼來源:update_dependencies_while_creating_local_nugets.cs

示例2: find_the_dependency_configuration

        public void find_the_dependency_configuration()
        {
            var dependency = new Dependency("Bottles", "1.0.0.0");

            var solution = new Solution();
            solution.AddDependency(dependency);

            solution.FindDependency("Bottles").ShouldEqual(dependency);
        }
開發者ID:modulexcite,項目名稱:ripple,代碼行數:9,代碼來源:SolutionTester.cs


注:本文中的ripple.Model.Solution.FindDependency方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。