本文整理匯總了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;
});
}
示例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);
}