Example #1
0
 public void Configure(ICakeServices services)
 {
     services.UseAssembly(typeof(Default).Assembly);
     services.UseContext <DotNetCoreContext>();
     services.UseLifetime <DotNetCoreLifetime>();
     services.UseWorkingDirectory("..");
 }
 public void Configure(ICakeServices services)
 {
     services.UseAssembly(typeof(Context).Assembly);
     services.UseAssembly(typeof(BitbucketCreateRepo).Assembly);
     services.UseContext <Context>();
     services.UseLifetime <Lifetime>();
     services.UseWorkingDirectory("..");
 }
Example #3
0
 public void Configure(ICakeServices services)
 {
     services.UseAssembly(typeof(DotNetCoreBuild).Assembly);
     services.UseContext <DotNetCoreContext>();
     services.UseLifetime <DotNetCoreLifetime>();
     //services.UseContext<DynamicContext>();
     //services.UseLifetime<DynamicLifetime>();
     services.UseWorkingDirectory("../../");
 }
    public void Configure(ICakeServices services)
    {
        services.UseAssembly(typeof(DotNetCoreBuild).Assembly);
        services.UseContext <DotNetCoreContext>();
        services.UseLifetime <DotNetCoreLifetime>();
        services.UseWorkingDirectory("..");

        RegisterLifetimeActions();
    }
Example #5
0
            public void Should_Throw_If_Services_Reference_Is_Null()
            {
                // Given
                ICakeServices services = null;

                // When
                var result = Record.Exception(() => services.UseLifetime <DummyLifetime>());

                // Then
                AssertEx.IsArgumentNullException(result, "services");
            }
Example #6
0
        public void Configure(ICakeServices services)
        {
            services.UseContext <Context>();
            services.UseLifetime <Lifetime>();
            services.UseTaskLifetime <TaskLifetime>();
            services.UseWorkingDirectory(".");
            services.UsePackageInstaller <NuGetPackageInstaller>();

            // Workaround, cannot use services.UseModule<NuGetModule>(), because there is no default constructor
            var nuGetModule = new NuGetModule(new CakeConfiguration(new Dictionary <string, string>()));

            nuGetModule.Register(services);
        }
    public void Configure(ICakeServices services)
    {
        services.UseContext <Context>();
        services.UseLifetime <Lifetime>();
        services.UseWorkingDirectory("..");

        // from https://github.com/cake-build/cake/discussions/2931
        var module = new NuGetModule(new CakeConfiguration(new Dictionary <string, string>()));

        module.Register(services);

        services.UseTool(new Uri("nuget:?package=GitVersion.CommandLine&version=5.0.1"));
        services.UseTool(new Uri("nuget:?package=Microsoft.TestPlatform&version=16.8.0"));
        services.UseTool(new Uri("nuget:?package=NUnitTestAdapter&version=2.3.0"));
        services.UseTool(new Uri("nuget:?package=NuGet.CommandLine&version=5.8.0"));
    }
Example #8
0
 public void Configure(ICakeServices services)
 {
     services.UseContext <Context>();
     services.UseLifetime <Lifetime>();
     services.UseWorkingDirectory("..");
 }
 public void Configure(ICakeServices services)
 {
     services.UseContext <Context>();
     services.UseLifetime <Lifetime>();
 }