public void SetUp() { var theFilename = "fubumvc.core.nuspec"; var stream = GetType() .Assembly .GetManifestResourceStream(typeof(DataMother), "FubuMVCNuspecTemplate.txt"); new FileSystem().WriteStreamToFile(theFilename, stream); theSpec = NugetSpec.ReadFrom(theFilename.ToFullPath()); }
public void verify_the_dependencies() { var specFile = theSolution.Specifications.Single(x => x.Name == "SomeProject"); var spec = NugetSpec.ReadFrom(specFile.Filename); verifyVersion(spec, "Bottles", "[1.1.0.255, 2.0.0.0)"); verifyVersion(spec, "FubuCore", "1.0.1.244"); verifyVersion(spec, "FubuLocalization", "[1.8.0.0, 1.9.0.0)"); verifyVersion(spec, "Something", "1.0.1.244"); }
public IEnumerable <NugetSpec> SpecificationsFor(Solution solution) { var specs = new List <NugetSpec>(); _files.ForNuspecs(solution, file => { var spec = NugetSpec.ReadFrom(file.ToFullPath()); spec.Publisher = solution; specs.Add(spec); }); return(specs); }
public void smoke_test_the_package_validation() { var theFilename = "fubumvc.core.nuspec"; var stream = GetType() .Assembly .GetManifestResourceStream(typeof(DataMother), "FubuMVCNuspecTemplate.txt"); new FileSystem().WriteStreamToFile(theFilename, stream); var spec = NugetSpec.ReadFrom(theFilename); var service = new PublishingService(new StubSolutionFiles { RootDir = ".".ToFullPath() }); Exception <RippleFatalError> .ShouldBeThrownBy(() => service.CreatePackage(new PackageParams(spec, new SemanticVersion("1.0.0.0"), ".".ToFullPath(), false))); }
protected override void execute(CreatePackagesInput input, IRippleStepRunner runner) { runner.CreateDirectory(input.DestinationFlag); var report = runner.Get <NuspecGenerationReport>(); if (report == null) { throw new InvalidOperationException("Could not find generation report"); } report.NuspecFiles.Each(file => { var version = input.Version(); RippleLog.Info("Building the nuget spec file at " + file + " as version " + version); Solution.Package(new PackageParams(NugetSpec.ReadFrom(file), version, input.DestinationFlag, input.CreateSymbolsFlag)); RippleLog.Info(ConsoleWriter.HL); }); }