本文整理汇总了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);
}