├── packages
├── TinyIoC.1.2
│ ├── TinyIoC.1.2.nupkg
│ └── TinyIoC.1.2.nuspec
├── xunit.1.9.2
│ ├── lib
│ │ └── net20
│ │ │ ├── xunit.dll
│ │ │ ├── xunit.runner.msbuild.dll
│ │ │ ├── xunit.runner.tdnet.dll
│ │ │ ├── xunit.runner.utility.dll
│ │ │ └── xunit.dll.tdnet
│ ├── xunit.1.9.2.nupkg
│ └── xunit.1.9.2.nuspec
├── Moq.4.2.1402.2112
│ ├── lib
│ │ ├── net35
│ │ │ └── Moq.dll
│ │ ├── net40
│ │ │ └── Moq.dll
│ │ └── sl4
│ │ │ └── Moq.Silverlight.dll
│ └── Moq.4.2.1402.2112.nupkg
├── NuGet.CommandLine.2.8.2
│ ├── tools
│ │ └── NuGet.exe
│ └── NuGet.CommandLine.2.8.2.nupkg
├── xunit.runners.1.9.2
│ ├── tools
│ │ ├── xunit.gui.exe
│ │ ├── xunit.console.exe
│ │ ├── xunit.gui.x86.exe
│ │ ├── xunit.gui.clr4.exe
│ │ ├── xunit.console.clr4.exe
│ │ ├── xunit.console.x86.exe
│ │ ├── xunit.gui.clr4.x86.exe
│ │ ├── xunit.runner.msbuild.dll
│ │ ├── xunit.runner.utility.dll
│ │ ├── xunit.console.clr4.x86.exe
│ │ ├── xunit.console.exe.config
│ │ ├── xunit.console.clr4.exe.config
│ │ ├── xunit.console.x86.exe.config
│ │ └── xunit.console.clr4.x86.exe.config
│ ├── xunit.runners.1.9.2.nupkg
│ └── xunit.runners.1.9.2.nuspec
├── ScriptCs.Contracts.0.10.2
│ ├── ScriptCs.Contracts.0.10.2.nupkg
│ └── lib
│ │ └── net45
│ │ └── ScriptCs.Contracts.dll
└── repositories.config
├── .nuget
└── packages.config
├── DotNetBuild.Core
├── Facilities
│ ├── IFacility.cs
│ ├── IFacilityProvider.cs
│ ├── State
│ │ ├── IStateReader.cs
│ │ └── IStateWriter.cs
│ └── Logging
│ │ └── ILogger.cs
├── IConfigurator.cs
├── IParameterProvider.cs
├── ITargetRegistry.cs
├── IConfigurationRegistry.cs
├── ITarget.cs
├── TargetDependencyBuilder.cs
├── package.nuspec
├── TargetBuilderDecorator.cs
├── TargetExecutionContext.cs
├── ConfigurationBuilder.cs
├── ConfigurationSettings.cs
├── Properties
│ └── AssemblyInfo.cs
├── ConfigurationBuilderExtension.cs
└── TargetBuilderExtension.cs
├── packagesForNuGet
├── DotNetBuild.Core.1.0.0.nupkg
├── DotNetBuild.Core.1.1.0.nupkg
├── DotNetBuild.Runner.1.0.0.nupkg
├── DotNetBuild.Runner.1.1.0.nupkg
├── DotNetBuild.Tasks.1.0.0.nupkg
├── DotNetBuild.Tasks.1.1.0.nupkg
├── DotNetBuild.Core.1.0.0-alpha.nupkg
├── DotNetBuild.Core.1.0.0-alpha2.nupkg
├── DotNetBuild.Core.1.0.0-alpha3.nupkg
├── DotNetBuild.Tasks.1.0.0-alpha.nupkg
├── DotNetBuild.Runner.1.0.0-alpha.nupkg
├── DotNetBuild.Runner.1.0.0-alpha2.nupkg
├── DotNetBuild.Runner.1.0.0-alpha3.nupkg
├── DotNetBuild.Tasks.1.0.0-alpha2.nupkg
├── DotNetBuild.Tasks.1.0.0-alpha3.nupkg
├── DotNetBuild.Runner.Assembly.1.0.0.nupkg
├── DotNetBuild.Runner.Assembly.1.1.0.nupkg
├── DotNetBuild.Runner.ScriptCs.1.0.0.nupkg
├── DotNetBuild.Runner.ScriptCs.1.1.0.nupkg
├── DotNetBuild.Runner.Assembly.1.0.0-alpha.nupkg
├── DotNetBuild.Runner.ScriptCs.1.0.0-alpha.nupkg
├── DotNetBuild.Runner.Assembly.1.0.0-alpha2.nupkg
├── DotNetBuild.Runner.Assembly.1.0.0-alpha3.nupkg
├── DotNetBuild.Runner.ScriptCs.1.0.0-alpha2.nupkg
└── DotNetBuild.Runner.ScriptCs.1.0.0-alpha3.nupkg
├── DotNetBuild.Runner
├── packages.config
├── Infrastructure
│ ├── Logging
│ │ ├── ILoggerFactory.cs
│ │ ├── ILogger.cs
│ │ ├── LoggerFactory.cs
│ │ └── Loggers
│ │ │ ├── StandardLogger.cs
│ │ │ └── TeamCityLogger.cs
│ └── Reflection
│ │ ├── TypeFilter.cs
│ │ ├── AssemblyLoader.cs
│ │ └── TypeActivator.cs
├── ParameterConstants.cs
├── Exceptions
│ ├── UnableToFindTargetException.cs
│ ├── UnableToLoadAssemblyException.cs
│ ├── UnableToResolveConfiguratorException.cs
│ ├── UnableToFindConfigurationException.cs
│ ├── UnableToActivateTypeWithNoDefaultConstructorException.cs
│ ├── UnableToActivateConfiguratorException.cs
│ ├── DotNetBuildException.cs
│ ├── UnableToExecuteTargetException.cs
│ ├── UnableToDetermineCorrectImplementationException.cs
│ └── UnableToExecuteTargetWithCircularDependenciesException.cs
├── Facilities
│ ├── State
│ │ ├── StateReader.cs
│ │ ├── StateWriter.cs
│ │ └── StateRegistry.cs
│ ├── Logging
│ │ └── Logger.cs
│ └── FacilityProvider.cs
├── package.nuspec
├── ParameterProvider.cs
├── TargetRegistry.cs
├── ConfigurationRegistry.cs
├── TargetInspector.cs
├── ConfiguratorResolver.cs
└── Properties
│ └── AssemblyInfo.cs
├── DotNetBuild.Build.ScriptCs.Fluent
├── scriptcs_bin
│ ├── DotNetBuild.Core.dll
│ ├── DotNetBuild.Core.pdb
│ ├── DotNetBuild.Runner.dll
│ ├── DotNetBuild.Runner.pdb
│ ├── DotNetBuild.Tasks.dll
│ ├── DotNetBuild.Tasks.pdb
│ ├── ScriptCs.Contracts.dll
│ ├── DotNetBuild.Runner.ScriptCs.dll
│ └── DotNetBuild.Runner.ScriptCs.pdb
├── buildCI.bat
└── buildDeploy.bat
├── DotNetBuild.Runner.ScriptCs
├── packages.config
├── DotNetBuildScriptPack.cs
├── package.nuspec
└── Properties
│ └── AssemblyInfo.cs
├── DotNetBuild.Build.ScriptCs.NonFluent
├── scriptcs_bin
│ ├── DotNetBuild.Core.dll
│ ├── DotNetBuild.Core.pdb
│ ├── DotNetBuild.Runner.dll
│ ├── DotNetBuild.Runner.pdb
│ ├── DotNetBuild.Tasks.dll
│ ├── DotNetBuild.Tasks.pdb
│ ├── ScriptCs.Contracts.dll
│ ├── DotNetBuild.Runner.ScriptCs.dll
│ └── DotNetBuild.Runner.ScriptCs.pdb
├── configuration.csx
├── targets.deploy.csx
├── targets.compilation.buildRelease.csx
├── targets.ci.csx
├── targets.testing.runTests.csx
├── buildCI.bat
├── buildDeploy.bat
├── build.csx
├── targets.nuget.createCorePackage.csx
├── targets.nuget.createTasksPackage.csx
├── targets.nuget.createRunnerPackage.csx
├── targets.nuget.publishCorePackage.csx
├── targets.nuget.publishRunnerPackage.csx
├── targets.nuget.publishTasksPackage.csx
├── targets.nuget.createRunnerAssemblyPackage.csx
├── targets.nuget.createRunnerScriptCsPackage.csx
├── targets.nuget.publishRunnerAssemblyPackage.csx
└── targets.nuget.publishRunnerScriptCsPackage.csx
├── DotNetBuild.Build.Assembly.Fluent
├── buildCI.bat
├── buildDeploy.bat
└── Properties
│ └── AssemblyInfo.cs
├── DotNetBuild.Build.Assembly.NonFluent
├── buildCI.bat
├── buildDeploy.bat
├── Configurator.cs
├── Configuration
│ └── DefaultConfigurationSettings.cs
├── Targets
│ ├── Deploy.cs
│ ├── Compilation
│ │ └── BuildRelease.cs
│ ├── Testing
│ │ └── RunTests.cs
│ ├── CI.cs
│ └── NuGet
│ │ ├── CreateCorePackage.cs
│ │ ├── CreateTasksPackage.cs
│ │ ├── CreateRunnerPackage.cs
│ │ ├── PublishCorePackage.cs
│ │ ├── PublishTasksPackage.cs
│ │ ├── PublishRunnerPackage.cs
│ │ ├── CreateRunnerAssemblyPackage.cs
│ │ └── CreateRunnerScriptCsPackage.cs
└── Properties
│ └── AssemblyInfo.cs
├── DotNetBuild.Runner.Assembly
├── App.config
├── Program.cs
├── package.nuspec
└── Properties
│ └── AssemblyInfo.cs
├── DotNetBuild.Tests
├── packages.config
├── Runner
│ ├── Facilities
│ │ ├── TestFacility.cs
│ │ ├── State
│ │ │ ├── StateRegistryTests
│ │ │ │ ├── Get_state_with_unexisting_key.cs
│ │ │ │ ├── Get_state.cs
│ │ │ │ ├── Get_state_with_different_case.cs
│ │ │ │ ├── Add_state.cs
│ │ │ │ ├── Get_state_with_wrong_type.cs
│ │ │ │ ├── Add_state_without_passing_in_a_key.cs
│ │ │ │ ├── Add_state_without_passing_in_a_value.cs
│ │ │ │ └── Add_state_with_existing_key.cs
│ │ │ ├── StateWriterTests
│ │ │ │ └── Add_state.cs
│ │ │ └── StateReaderTests
│ │ │ │ └── Get_state.cs
│ │ └── Logging
│ │ │ └── LoggerTests
│ │ │ ├── LogInfo.cs
│ │ │ └── LogError.cs
│ ├── TargetRegistryTests
│ │ ├── Get_target_without_passing_in_a_key.cs
│ │ ├── Get_target_with_unexisting_key.cs
│ │ ├── Get_target.cs
│ │ ├── Get_target_with_different_casing.cs
│ │ ├── Add_target.cs
│ │ ├── Add_target_without_passing_in_a_value.cs
│ │ ├── Add_target_without_passing_in_a_key.cs
│ │ └── Add_target_with_existing_key.cs
│ ├── ConfigurationRegistryTests
│ │ ├── Get_configuration_settings_without_passing_in_a_key.cs
│ │ ├── Get_configuration_settings_with_unexisting_key.cs
│ │ ├── Get_configuration_settings.cs
│ │ ├── Get_configuration_settings_with_different_casing.cs
│ │ ├── Add_configuration_settings_without_passing_in_a_value.cs
│ │ ├── Add_configuration_settings.cs
│ │ ├── Add_configuration_settings_without_passing_in_a_key.cs
│ │ └── Add_configuration_settings_with_existing_key.cs
│ ├── Infrastructure
│ │ └── Reflection
│ │ │ ├── TypeFilterTests
│ │ │ └── Get_its_Filter.cs
│ │ │ ├── AssemblyLoaderTests
│ │ │ ├── Load_an_invalid_Assembly.cs
│ │ │ └── Load_a_Assembly.cs
│ │ │ ├── TypeActivatorTests
│ │ │ ├── Activate_a_Type.cs
│ │ │ ├── Activate_a_Type_with_no_Type.cs
│ │ │ └── Activate_a_Type_with_no_default_constructor.cs
│ │ │ └── AssemblyWrapperTests
│ │ │ ├── Get_one_type_with_no_filter.cs
│ │ │ └── Get_one_type_with_a_filter.cs
│ ├── ConfiguratorResolverTests
│ │ └── Resolve_a_Configurator_with_no_assembly_wrapper.cs
│ ├── ParameterProviderTests
│ │ └── Get_value.cs
│ └── TargetExecutorTests
│ │ └── Execute_a_null_Target.cs
├── TestSpecification.cs
├── TestHelpers.cs
├── TestData.cs
├── Core
│ ├── ConfigurationSettingsTests
│ │ ├── Get_setting_without_passing_in_a_key.cs
│ │ ├── Get_setting_with_unexisting_key.cs
│ │ ├── Get_setting_with_unexisting_key_default_value.cs
│ │ ├── Get_setting.cs
│ │ ├── Add_setting.cs
│ │ ├── Add_setting_without_passing_in_a_key.cs
│ │ ├── Add_setting_without_passing_in_a_value.cs
│ │ ├── Get_setting_of_the_wrong_type.cs
│ │ └── Add_setting_with_existing_key.cs
│ ├── TargetBuilderTests
│ │ ├── Build_with_no_name.cs
│ │ ├── Set_ContinueOnError.cs
│ │ ├── Set_ExecuteFunc.cs
│ │ ├── Set_DependsOn_target.cs
│ │ └── Build_with_valid_arguments.cs
│ └── ConfigurationBuilderTests
│ │ ├── Build_with_no_name.cs
│ │ ├── Add_setting.cs
│ │ └── Build_with_valid_arguments.cs
└── Properties
│ └── AssemblyInfo.cs
├── DotNetBuild.Tests.TestAssembly
├── DummyConfigurator.cs
├── Dummy2Target.cs
├── Dummy1Target.cs
└── Properties
│ └── AssemblyInfo.cs
├── appveyor.yml
├── DotNetBuild.Tasks
├── ExecTask.cs
├── XunitTask.cs
├── package.nuspec
├── NuGet
│ ├── Push.cs
│ └── Pack.cs
└── Properties
│ └── AssemblyInfo.cs
├── LICENSE.txt
└── .gitignore
/packages/TinyIoC.1.2/TinyIoC.1.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/TinyIoC.1.2/TinyIoC.1.2.nupkg
--------------------------------------------------------------------------------
/packages/xunit.1.9.2/lib/net20/xunit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.1.9.2/lib/net20/xunit.dll
--------------------------------------------------------------------------------
/packages/xunit.1.9.2/xunit.1.9.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.1.9.2/xunit.1.9.2.nupkg
--------------------------------------------------------------------------------
/.nuget/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/DotNetBuild.Core/Facilities/IFacility.cs:
--------------------------------------------------------------------------------
1 | namespace DotNetBuild.Core.Facilities
2 | {
3 | public interface IFacility
4 | {
5 | }
6 | }
--------------------------------------------------------------------------------
/packages/Moq.4.2.1402.2112/lib/net35/Moq.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/Moq.4.2.1402.2112/lib/net35/Moq.dll
--------------------------------------------------------------------------------
/packages/Moq.4.2.1402.2112/lib/net40/Moq.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/Moq.4.2.1402.2112/lib/net40/Moq.dll
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Core.1.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Core.1.0.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Core.1.1.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Core.1.1.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.1.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.1.0.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.1.1.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.1.1.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Tasks.1.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Tasks.1.0.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Tasks.1.1.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Tasks.1.1.0.nupkg
--------------------------------------------------------------------------------
/DotNetBuild.Core/IConfigurator.cs:
--------------------------------------------------------------------------------
1 | namespace DotNetBuild.Core
2 | {
3 | public interface IConfigurator
4 | {
5 | void Configure();
6 | }
7 | }
--------------------------------------------------------------------------------
/packages/Moq.4.2.1402.2112/Moq.4.2.1402.2112.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/Moq.4.2.1402.2112/Moq.4.2.1402.2112.nupkg
--------------------------------------------------------------------------------
/packages/NuGet.CommandLine.2.8.2/tools/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/NuGet.CommandLine.2.8.2/tools/NuGet.exe
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.gui.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.gui.exe
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.console.exe
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.gui.x86.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.gui.x86.exe
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Core.1.0.0-alpha.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Core.1.0.0-alpha.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Core.1.0.0-alpha2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Core.1.0.0-alpha2.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Core.1.0.0-alpha3.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Core.1.0.0-alpha3.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Tasks.1.0.0-alpha.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Tasks.1.0.0-alpha.nupkg
--------------------------------------------------------------------------------
/DotNetBuild.Runner/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/packages/Moq.4.2.1402.2112/lib/sl4/Moq.Silverlight.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/Moq.4.2.1402.2112/lib/sl4/Moq.Silverlight.dll
--------------------------------------------------------------------------------
/packages/xunit.1.9.2/lib/net20/xunit.runner.msbuild.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.1.9.2/lib/net20/xunit.runner.msbuild.dll
--------------------------------------------------------------------------------
/packages/xunit.1.9.2/lib/net20/xunit.runner.tdnet.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.1.9.2/lib/net20/xunit.runner.tdnet.dll
--------------------------------------------------------------------------------
/packages/xunit.1.9.2/lib/net20/xunit.runner.utility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.1.9.2/lib/net20/xunit.runner.utility.dll
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.gui.clr4.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.gui.clr4.exe
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/xunit.runners.1.9.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/xunit.runners.1.9.2.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.1.0.0-alpha.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.1.0.0-alpha.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.1.0.0-alpha2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.1.0.0-alpha2.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.1.0.0-alpha3.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.1.0.0-alpha3.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Tasks.1.0.0-alpha2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Tasks.1.0.0-alpha2.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Tasks.1.0.0-alpha3.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Tasks.1.0.0-alpha3.nupkg
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.clr4.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.console.clr4.exe
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.x86.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.console.x86.exe
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.gui.clr4.x86.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.gui.clr4.x86.exe
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.Assembly.1.1.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.Assembly.1.1.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.1.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.1.0.nupkg
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.runner.msbuild.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.runner.msbuild.dll
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.runner.utility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.runner.utility.dll
--------------------------------------------------------------------------------
/packages/NuGet.CommandLine.2.8.2/NuGet.CommandLine.2.8.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/NuGet.CommandLine.2.8.2/NuGet.CommandLine.2.8.2.nupkg
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.clr4.x86.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/xunit.runners.1.9.2/tools/xunit.console.clr4.x86.exe
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0-alpha.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0-alpha.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0-alpha.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0-alpha.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0-alpha2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0-alpha2.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0-alpha3.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.Assembly.1.0.0-alpha3.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0-alpha2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0-alpha2.nupkg
--------------------------------------------------------------------------------
/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0-alpha3.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packagesForNuGet/DotNetBuild.Runner.ScriptCs.1.0.0-alpha3.nupkg
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Core.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Core.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Core.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Runner.ScriptCs/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/packages/ScriptCs.Contracts.0.10.2/ScriptCs.Contracts.0.10.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/ScriptCs.Contracts.0.10.2/ScriptCs.Contracts.0.10.2.nupkg
--------------------------------------------------------------------------------
/packages/ScriptCs.Contracts.0.10.2/lib/net45/ScriptCs.Contracts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/packages/ScriptCs.Contracts.0.10.2/lib/net45/ScriptCs.Contracts.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Tasks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Tasks.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Tasks.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Tasks.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/ScriptCs.Contracts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/ScriptCs.Contracts.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Core.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Core.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Core.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Core/IParameterProvider.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Core
4 | {
5 | public interface IParameterProvider
6 | {
7 | String Get(String key);
8 | }
9 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Tasks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Tasks.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Tasks.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Tasks.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/ScriptCs.Contracts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/ScriptCs.Contracts.dll
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Infrastructure/Logging/ILoggerFactory.cs:
--------------------------------------------------------------------------------
1 | namespace DotNetBuild.Runner.Infrastructure.Logging
2 | {
3 | public interface ILoggerFactory
4 | {
5 | ILogger CreateLogger();
6 | }
7 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.Fluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Build.Assembly.Fluent/buildCI.bat:
--------------------------------------------------------------------------------
1 | ..\DotNetBuild.Runner.Assembly\bin\Debug\DotNetBuild.Runner.Assembly.exe assembly:.\bin\Debug\DotNetBuild.Build.Assembly.Fluent.dll target:CI configuration:defaultConfig
2 | pause
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.dll
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/stevenlauwers22/DotNetBuild/HEAD/DotNetBuild.Build.ScriptCs.NonFluent/scriptcs_bin/DotNetBuild.Runner.ScriptCs.pdb
--------------------------------------------------------------------------------
/DotNetBuild.Build.Assembly.NonFluent/buildCI.bat:
--------------------------------------------------------------------------------
1 | ..\DotNetBuild.Runner.Assembly\bin\Debug\DotNetBuild.Runner.Assembly.exe assembly:.\bin\Debug\DotNetBuild.Build.Assembly.NonFluent.dll target:CI configuration:defaultConfig
2 | pause
--------------------------------------------------------------------------------
/DotNetBuild.Runner.Assembly/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/DotNetBuild.Core/Facilities/IFacilityProvider.cs:
--------------------------------------------------------------------------------
1 | namespace DotNetBuild.Core.Facilities
2 | {
3 | public interface IFacilityProvider
4 | {
5 | TFacility Get()
6 | where TFacility : IFacility;
7 | }
8 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/DotNetBuild.Build.Assembly.Fluent/buildDeploy.bat:
--------------------------------------------------------------------------------
1 | ..\DotNetBuild.Runner.Assembly\bin\Debug\DotNetBuild.Runner.Assembly.exe assembly:.\bin\Debug\DotNetBuild.Build.Assembly.Fluent.dll target:Deploy configuration:defaultConfig versionNumber:1.1.0
2 | pause
--------------------------------------------------------------------------------
/DotNetBuild.Core/Facilities/State/IStateReader.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Core.Facilities.State
4 | {
5 | public interface IStateReader
6 | : IFacility
7 | {
8 | T Get(String key);
9 | }
10 | }
--------------------------------------------------------------------------------
/DotNetBuild.Core/ITargetRegistry.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Core
4 | {
5 | public interface ITargetRegistry
6 | {
7 | ITarget Get(String key);
8 | void Add(String key, ITarget value);
9 | }
10 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.Assembly.NonFluent/buildDeploy.bat:
--------------------------------------------------------------------------------
1 | ..\DotNetBuild.Runner.Assembly\bin\Debug\DotNetBuild.Runner.Assembly.exe assembly:.\bin\Debug\DotNetBuild.Build.Assembly.NonFluent.dll target:Deploy configuration:defaultConfig versionNumber:1.1.0
2 | pause
--------------------------------------------------------------------------------
/packages/xunit.1.9.2/lib/net20/xunit.dll.tdnet:
--------------------------------------------------------------------------------
1 |
2 | xUnit.net {0}.{1}.{2} build {3}
3 | xunit.runner.tdnet.dll
4 | Xunit.Runner.TdNet.TdNetRunner
5 |
--------------------------------------------------------------------------------
/DotNetBuild.Core/Facilities/State/IStateWriter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Core.Facilities.State
4 | {
5 | public interface IStateWriter
6 | : IFacility
7 | {
8 | void Add(String key, Object value);
9 | }
10 | }
--------------------------------------------------------------------------------
/DotNetBuild.Core/IConfigurationRegistry.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Core
4 | {
5 | public interface IConfigurationRegistry
6 | {
7 | IConfigurationSettings Get(String key);
8 | void Add(String key, IConfigurationSettings value);
9 | }
10 | }
--------------------------------------------------------------------------------
/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/DotNetBuild.Core/Facilities/Logging/ILogger.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Core.Facilities.Logging
4 | {
5 | public interface ILogger
6 | : IFacility
7 | {
8 | void LogInfo(String message);
9 | void LogError(String message, Exception exception);
10 | }
11 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/Runner/Facilities/TestFacility.cs:
--------------------------------------------------------------------------------
1 | using DotNetBuild.Core.Facilities;
2 |
3 | namespace DotNetBuild.Tests.Runner.Facilities
4 | {
5 | public interface ITestFacility
6 | : IFacility
7 | {
8 | }
9 |
10 | public class TestFacility
11 | : ITestFacility
12 | {
13 | }
14 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/ParameterConstants.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner
4 | {
5 | public class ParameterConstants
6 | {
7 | public const String Assembly = "assembly";
8 | public const String Target = "target";
9 | public const String Configuration = "configuration";
10 | }
11 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests.TestAssembly/DummyConfigurator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Core;
3 |
4 | namespace DotNetBuild.Tests.TestAssembly
5 | {
6 | public class DummyConfigurator : IConfigurator
7 | {
8 | public void Configure()
9 | {
10 | throw new NotImplementedException();
11 | }
12 | }
13 | }
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | branches:
2 | only:
3 | - master
4 |
5 | os: Windows Server 2012
6 |
7 | init:
8 | - git config --global core.autocrlf input
9 | - cinst scriptcs -y
10 |
11 | build_script:
12 | - C:\ProgramData\chocolatey\bin\scriptcs.exe .\DotNetBuild.Build.ScriptCs.Fluent\build.csx -- target:ci configuration:appveyorConfig
13 |
14 | test: off
--------------------------------------------------------------------------------
/DotNetBuild.Core/ITarget.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | namespace DotNetBuild.Core
5 | {
6 | public interface ITarget
7 | {
8 | String Description { get; }
9 | Boolean ContinueOnError { get; }
10 | IEnumerable DependsOn { get; }
11 |
12 | Boolean Execute(TargetExecutionContext context);
13 | }
14 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Infrastructure/Logging/ILogger.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Infrastructure.Logging
4 | {
5 | public interface ILogger
6 | {
7 | void Write(String message);
8 | void WriteBlockStart(String message);
9 | void WriteBlockEnd(String message);
10 | void WriteError(String message, Exception exception);
11 | }
12 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/configuration.csx:
--------------------------------------------------------------------------------
1 | public class DefaultConfigurationSettings : ConfigurationSettings
2 | {
3 | public DefaultConfigurationSettings()
4 | {
5 | Add("SolutionDirectory", @"..\");
6 | Add("PathToNuGetExe", @"packages\NuGet.CommandLine.2.8.2\tools\NuGet.exe");
7 | Add("NuGetApiKey", "");
8 | Add("PathToXUnitRunnerExe", @"packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe");
9 | }
10 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner.Assembly/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Runner.Configuration;
3 | using DotNetBuild.Runner.Infrastructure.TinyIoC;
4 |
5 | namespace DotNetBuild.Runner.Assembly
6 | {
7 | public class Program
8 | {
9 | public static int Main(String[] args)
10 | {
11 | var container = TinyIoCContainer.Current.RegisterDotNetBuild();
12 | var dotNetBuild = new DotNetBuild(args, container);
13 | return dotNetBuild.Run();
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tasks/ExecTask.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Tasks
4 | {
5 | public class ExecTask
6 | : CommandLineToolTask
7 | {
8 | public String ToolExe { get; set; }
9 | public String ToolArguments { get; set; }
10 |
11 | protected override String GetToolPath()
12 | {
13 | return ToolExe;
14 | }
15 |
16 | protected override String GetToolArguments()
17 | {
18 | return ToolArguments;
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/TestSpecification.cs:
--------------------------------------------------------------------------------
1 | namespace DotNetBuild.Tests
2 | {
3 | public abstract class TestSpecification
4 | {
5 | protected T Sut;
6 |
7 | protected TestSpecification()
8 | {
9 | Arrange();
10 | Sut = CreateSubjectUnderTest();
11 | Act();
12 | }
13 |
14 | protected virtual void Arrange()
15 | {
16 | }
17 |
18 | protected abstract T CreateSubjectUnderTest();
19 |
20 | protected abstract void Act();
21 | }
22 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.Assembly.NonFluent/Configurator.cs:
--------------------------------------------------------------------------------
1 | using DotNetBuild.Build.Assembly.NonFluent.Configuration;
2 | using DotNetBuild.Build.Assembly.NonFluent.Targets;
3 | using DotNetBuild.Core;
4 |
5 | namespace DotNetBuild.Build.Assembly.NonFluent
6 | {
7 | public class Configurator : IConfigurator
8 | {
9 | public void Configure()
10 | {
11 | "ci".Target(new CI());
12 | "deploy".Target(new Deploy());
13 |
14 | "defaultConfig".Configure(new DefaultConfigurationSettings());
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/UnableToFindTargetException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public class UnableToFindTargetException
6 | : DotNetBuildException
7 | {
8 | private readonly String _target;
9 |
10 | public UnableToFindTargetException(String target)
11 | : base(-13, String.Format("Target with name '{0}' could not be found", target))
12 | {
13 | _target = target;
14 | }
15 |
16 | public String Target
17 | {
18 | get { return _target; }
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.Assembly.NonFluent/Configuration/DefaultConfigurationSettings.cs:
--------------------------------------------------------------------------------
1 | using DotNetBuild.Core;
2 |
3 | namespace DotNetBuild.Build.Assembly.NonFluent.Configuration
4 | {
5 | public class DefaultConfigurationSettings : ConfigurationSettings
6 | {
7 | public DefaultConfigurationSettings()
8 | {
9 | Add("SolutionDirectory", @"..\");
10 | Add("PathToNuGetExe", @"packages\NuGet.CommandLine.2.8.2\tools\NuGet.exe");
11 | Add("NuGetApiKey", "");
12 | Add("PathToXUnitRunnerExe", @"packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe");
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/UnableToLoadAssemblyException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public class UnableToLoadAssemblyException
6 | : DotNetBuildException
7 | {
8 | private readonly String _assembly;
9 |
10 | public UnableToLoadAssemblyException(String assembly)
11 | : base(-10, String.Format("Assembly with name '{0}' could not be loaded", assembly))
12 | {
13 | _assembly = assembly;
14 | }
15 |
16 | public String Assembly
17 | {
18 | get { return _assembly; }
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tasks/XunitTask.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text;
3 |
4 | namespace DotNetBuild.Tasks
5 | {
6 | public class XunitTask
7 | : CommandLineToolTask
8 | {
9 | public String XunitExe { get; set; }
10 | public String Assembly { get; set; }
11 |
12 | protected override String GetToolPath()
13 | {
14 | return XunitExe;
15 | }
16 |
17 | protected override String GetToolArguments()
18 | {
19 | var parameters = new StringBuilder();
20 | parameters.Append(Assembly + " ");
21 |
22 | return parameters.ToString();
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/TestHelpers.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Tests
4 | {
5 | public class TestHelpers
6 | {
7 | public static Exception CatchException(Action action)
8 | {
9 | return CatchException(action);
10 | }
11 |
12 | public static T CatchException(Action action)
13 | where T : Exception
14 | {
15 | try
16 | {
17 | action();
18 | }
19 | catch (T exception)
20 | {
21 | return exception;
22 | }
23 |
24 | return null;
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.clr4.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.x86.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/UnableToResolveConfiguratorException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public class UnableToResolveConfiguratorException
6 | : DotNetBuildException
7 | {
8 | private readonly String _assembly;
9 |
10 | public UnableToResolveConfiguratorException(String assembly)
11 | : base(-11, String.Format("An implementation of IConfigurator could not be found in assembly '{0}'", assembly))
12 | {
13 | _assembly = assembly;
14 | }
15 |
16 | public String Assembly
17 | {
18 | get { return _assembly; }
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/tools/xunit.console.clr4.x86.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/UnableToFindConfigurationException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public class UnableToFindConfigurationException
6 | : DotNetBuildException
7 | {
8 | private readonly String _configuration;
9 |
10 | public UnableToFindConfigurationException(String configuration)
11 | : base(-13, String.Format("Configuration with name '{0}' could not be found", configuration))
12 | {
13 | _configuration = configuration;
14 | }
15 |
16 | public String Configuration
17 | {
18 | get { return _configuration; }
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/UnableToActivateTypeWithNoDefaultConstructorException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public class UnableToActivateTypeWithNoDefaultConstructorException
6 | : DotNetBuildException
7 | {
8 | private readonly Type _type;
9 |
10 | public UnableToActivateTypeWithNoDefaultConstructorException(Type type)
11 | : base(-17, String.Format("Type '{0}' could not be activated, no default constructor was found", type.Name))
12 | {
13 | _type = type;
14 | }
15 |
16 | public Type Type
17 | {
18 | get { return _type; }
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Facilities/State/StateReader.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Core.Facilities.State;
3 |
4 | namespace DotNetBuild.Runner.Facilities.State
5 | {
6 | public class StateReader
7 | : IStateReader
8 | {
9 | private readonly IStateRegistry _stateRegistry;
10 |
11 | public StateReader(IStateRegistry stateRegistry)
12 | {
13 | if (stateRegistry == null)
14 | throw new ArgumentNullException("stateRegistry");
15 |
16 | _stateRegistry = stateRegistry;
17 | }
18 |
19 | public T Get(String key)
20 | {
21 | return _stateRegistry.Get(key);
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/DotNetBuild.Core/TargetDependencyBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Core
4 | {
5 | public interface ITargetDependencyBuilder
6 | : ITargetBuilder
7 | {
8 | ITargetDependencyBuilder And(String target);
9 | }
10 |
11 | public class TargetDependencyBuilder
12 | : TargetBuilderDecorator, ITargetDependencyBuilder
13 | {
14 | public TargetDependencyBuilder(ITargetBuilder targetBuilder)
15 | : base(targetBuilder)
16 | {
17 | }
18 |
19 | public ITargetDependencyBuilder And(String target)
20 | {
21 | TargetBuilder.DependsOn(target);
22 | return this;
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Facilities/State/StateWriter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Core.Facilities.State;
3 |
4 | namespace DotNetBuild.Runner.Facilities.State
5 | {
6 | public class StateWriter
7 | : IStateWriter
8 | {
9 | private readonly IStateRegistry _stateRegistry;
10 |
11 | public StateWriter(IStateRegistry stateRegistry)
12 | {
13 | if (stateRegistry == null)
14 | throw new ArgumentNullException("stateRegistry");
15 |
16 | _stateRegistry = stateRegistry;
17 | }
18 |
19 | public void Add(String key, Object value)
20 | {
21 | _stateRegistry.Add(key, value);
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/UnableToActivateConfiguratorException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public class UnableToActivateConfiguratorException
6 | : DotNetBuildException
7 | {
8 | private readonly Type _configuratorType;
9 |
10 | public UnableToActivateConfiguratorException(Type configuratorType)
11 | : base(-12, String.Format("Configurator of type '{0}' could not be activated", configuratorType.FullName))
12 | {
13 | _configuratorType = configuratorType;
14 | }
15 |
16 | public Type ConfiguratorType
17 | {
18 | get { return _configuratorType; }
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Infrastructure/Reflection/TypeFilter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Infrastructure.Reflection
4 | {
5 | public interface ITypeFilter
6 | {
7 | Func Filter { get; }
8 | }
9 |
10 | public class TypeFilter
11 | : ITypeFilter
12 | {
13 | private readonly Func _filter;
14 |
15 | public TypeFilter(Func filter)
16 | {
17 | if (filter == null)
18 | throw new ArgumentNullException("filter");
19 |
20 | _filter = filter;
21 | }
22 |
23 | public Func Filter
24 | {
25 | get { return _filter; }
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/DotNetBuildException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public abstract class DotNetBuildException
6 | : Exception
7 | {
8 | private readonly int _errorCode;
9 |
10 | protected DotNetBuildException(int errorCode, String message)
11 | : this(errorCode, message, null)
12 | {
13 | }
14 |
15 | protected DotNetBuildException(int errorCode, String message, Exception innerException)
16 | : base(message, innerException)
17 | {
18 | _errorCode = errorCode;
19 | }
20 |
21 | public int ErrorCode
22 | {
23 | get { return _errorCode; }
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Infrastructure/Logging/LoggerFactory.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Runner.Infrastructure.Logging.Loggers;
3 |
4 | namespace DotNetBuild.Runner.Infrastructure.Logging
5 | {
6 | public class LoggerFactory : ILoggerFactory
7 | {
8 | public ILogger CreateLogger()
9 | {
10 | var runningFromTeamCity = Environment.GetEnvironmentVariable("TEAMCITY_PROJECT_NAME") != null;
11 | if (runningFromTeamCity)
12 | return new TeamCityLogger();
13 |
14 | var runningFromAppVeyor = Environment.GetEnvironmentVariable("APPVEYOR") != null;
15 | if (runningFromAppVeyor)
16 | return new AppVeyorLogger();
17 |
18 | return new StandardLogger();
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/DotNetBuild.Core/package.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DotNetBuild.Core
5 | $version$
6 | DotNetBuild.Core
7 | Steven Lauwers
8 | Steven Lauwers
9 | Use .NET scripts to build your .NET code
10 | en-US
11 | https://github.com/stevenlauwers22/dotnetbuild
12 | false
13 | DotNetBuild.Core DotNetBuild DotNet MSBuild
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Infrastructure/Reflection/AssemblyLoader.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Reflection;
4 |
5 | namespace DotNetBuild.Runner.Infrastructure.Reflection
6 | {
7 | public interface IAssemblyLoader
8 | {
9 | IAssemblyWrapper Load(String assembly);
10 | }
11 |
12 | public class AssemblyLoader
13 | : IAssemblyLoader
14 | {
15 | public IAssemblyWrapper Load(String assembly)
16 | {
17 | var assemblyFileInfo = new FileInfo(assembly);
18 | if (!assemblyFileInfo.Exists)
19 | return null;
20 |
21 | var assemblyFile = Assembly.LoadFrom(assembly);
22 | var assemblyWrapper = new AssemblyWrapper(assemblyFile);
23 | return assemblyWrapper;
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tasks/package.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DotNetBuild.Tasks
5 | $version$
6 | DotNetBuild.Tasks
7 | Steven Lauwers
8 | Steven Lauwers
9 | Common tasks for DotNetBuild scripts
10 | en-US
11 | https://github.com/stevenlauwers22/dotnetbuild
12 | false
13 | DotNetBuild.Tasks DotNetBuild DotNet MSBuild
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/packages/TinyIoC.1.2/TinyIoC.1.2.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | TinyIoC
5 | 1.2
6 | TinyIoC
7 | Steven Robbins
8 | Steven Robbins
9 | https://github.com/grumpydev/TinyIoC/blob/master/src/licence.txt
10 | https://github.com/grumpydev/TinyIoC
11 | false
12 | An easy to use, hassle free, Inversion of Control Container for small projects, libraries and beginners alike
13 |
14 |
15 |
16 | IoC
17 |
18 |
--------------------------------------------------------------------------------
/DotNetBuild.Tests.TestAssembly/Dummy2Target.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using DotNetBuild.Core;
5 |
6 | namespace DotNetBuild.Tests.TestAssembly
7 | {
8 | public class Dummy2Target : ITarget
9 | {
10 | public String Description
11 | {
12 | get { return "Dummy target 2"; }
13 | }
14 |
15 | public Boolean ContinueOnError
16 | {
17 | get { return false; }
18 | }
19 |
20 | public IEnumerable DependsOn
21 | {
22 | get { return null; }
23 | }
24 |
25 | public Boolean Execute(TargetExecutionContext context)
26 | {
27 | Debug.WriteLine("{0} - executing", Description);
28 | return true;
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Facilities/Logging/Logger.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Core.Facilities.Logging;
3 |
4 | namespace DotNetBuild.Runner.Facilities.Logging
5 | {
6 | public class Logger
7 | : ILogger
8 | {
9 | private readonly Infrastructure.Logging.ILogger _logger;
10 |
11 | public Logger(Infrastructure.Logging.ILogger logger)
12 | {
13 | if (logger == null)
14 | throw new ArgumentNullException("logger");
15 |
16 | _logger = logger;
17 | }
18 |
19 | public void LogInfo(String message)
20 | {
21 | _logger.Write(message);
22 | }
23 |
24 | public void LogError(String message, Exception exception)
25 | {
26 | _logger.WriteError(message, exception);
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Exceptions/UnableToExecuteTargetException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Runner.Exceptions
4 | {
5 | public class UnableToExecuteTargetException
6 | : DotNetBuildException
7 | {
8 | private readonly Type _targetType;
9 |
10 | public UnableToExecuteTargetException(Type targetType)
11 | : this(targetType, null)
12 | {
13 | }
14 |
15 | public UnableToExecuteTargetException(Type targetType, Exception innerException)
16 | : base(-15, String.Format("An error occured while executing target '{0}'", targetType.FullName), innerException)
17 | {
18 | _targetType = targetType;
19 | }
20 |
21 | public Type TargetType
22 | {
23 | get { return _targetType; }
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/TestData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DotNetBuild.Tests
4 | {
5 | public class TestData
6 | {
7 | public static Guid GenerateGuid()
8 | {
9 | return Guid.NewGuid();
10 | }
11 |
12 | public static String GenerateString()
13 | {
14 | return Guid.NewGuid().ToString();
15 | }
16 |
17 | public static Decimal GenerateDecimal()
18 | {
19 | var generator = new Random();
20 | var value = new Decimal(generator.NextDouble() * generator.Next());
21 | return value;
22 | }
23 |
24 | public static Boolean GenerateBoolean()
25 | {
26 | var generator = new Random();
27 | var value = generator.Next();
28 | return value % 2 == 0;
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/targets.deploy.csx:
--------------------------------------------------------------------------------
1 | public class Deploy : ITarget
2 | {
3 | public String Description
4 | {
5 | get { return "Deploy to NuGet"; }
6 | }
7 |
8 | public Boolean ContinueOnError
9 | {
10 | get { return false; }
11 | }
12 |
13 | public IEnumerable DependsOn
14 | {
15 | get
16 | {
17 | return new List
18 | {
19 | new PublishCorePackage(),
20 | new PublishRunnerPackage(),
21 | new PublishRunnerAssemblyPackage(),
22 | new PublishRunnerScriptCsPackage(),
23 | new PublishTasksPackage()
24 | };
25 | }
26 | }
27 |
28 | public Boolean Execute(TargetExecutionContext context)
29 | {
30 | return true;
31 | }
32 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Facilities/FacilityProvider.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using DotNetBuild.Core.Facilities;
5 |
6 | namespace DotNetBuild.Runner.Facilities
7 | {
8 | public class FacilityProvider
9 | : IFacilityProvider
10 | {
11 | private readonly IEnumerable _facilities;
12 |
13 | public FacilityProvider(IEnumerable facilities)
14 | {
15 | if (facilities == null)
16 | throw new ArgumentNullException("facilities");
17 |
18 | _facilities = facilities;
19 | }
20 |
21 | public TFacility Get() where TFacility : IFacility
22 | {
23 | var facility = _facilities.OfType().SingleOrDefault();
24 | return facility;
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/DotNetBuild.Tests.TestAssembly/Dummy1Target.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Diagnostics;
4 | using DotNetBuild.Core;
5 |
6 | namespace DotNetBuild.Tests.TestAssembly
7 | {
8 | public class Dummy1Target : ITarget
9 | {
10 | public String Description
11 | {
12 | get { return "Dummy target 1"; }
13 | }
14 |
15 | public Boolean ContinueOnError
16 | {
17 | get { return false; }
18 | }
19 |
20 | public IEnumerable DependsOn
21 | {
22 | get { return new List { new Dummy2Target() }; }
23 | }
24 |
25 | public Boolean Execute(TargetExecutionContext context)
26 | {
27 | Debug.WriteLine("{0} - executing", Description);
28 | return true;
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/Infrastructure/Reflection/TypeActivator.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Runner.Exceptions;
3 |
4 | namespace DotNetBuild.Runner.Infrastructure.Reflection
5 | {
6 | public interface ITypeActivator
7 | {
8 | T Activate(Type targetType);
9 | }
10 |
11 | public class TypeActivator
12 | : ITypeActivator
13 | {
14 | public T Activate(Type type)
15 | {
16 | if (type == null)
17 | throw new ArgumentNullException("type");
18 |
19 | var defaultConstructor = type.GetConstructor(Type.EmptyTypes);
20 | if (defaultConstructor == null)
21 | throw new UnableToActivateTypeWithNoDefaultConstructorException(type);
22 |
23 | var target = Activator.CreateInstance(type);
24 | return (T) target;
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/packages/xunit.runners.1.9.2/xunit.runners.1.9.2.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | xunit.runners
5 | 1.9.2
6 | xUnit.net: Runners
7 | James Newkirk, Brad Wilson
8 | James Newkirk, Brad Wilson
9 | http://xunit.codeplex.com/license
10 | http://xunit.codeplex.com/
11 | http://download.codeplex.com/Download?ProjectName=xunit&DownloadId=365445
12 | false
13 | Runners for the xUnit.net framework, including Console, GUI, and MSBuild.
14 |
15 |
16 | en-US
17 |
18 |
--------------------------------------------------------------------------------
/DotNetBuild.Tests/Runner/TargetRegistryTests/Get_target_without_passing_in_a_key.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Runner;
3 | using Xunit;
4 |
5 | namespace DotNetBuild.Tests.Runner.TargetRegistryTests
6 | {
7 | public class Get_target_without_passing_in_a_key
8 | : TestSpecification
9 | {
10 | private String _key;
11 | private Object _result;
12 |
13 | protected override void Arrange()
14 | {
15 | _key = null;
16 | }
17 |
18 | protected override TargetRegistry CreateSubjectUnderTest()
19 | {
20 | return new TargetRegistry();
21 | }
22 |
23 | protected override void Act()
24 | {
25 | _result = Sut.Get(_key);
26 | }
27 |
28 | [Fact]
29 | public void Returns_null()
30 | {
31 | Assert.Null(_result);
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/Runner/TargetRegistryTests/Get_target_with_unexisting_key.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Runner;
3 | using Xunit;
4 |
5 | namespace DotNetBuild.Tests.Runner.TargetRegistryTests
6 | {
7 | public class Get_target_with_unexisting_key
8 | : TestSpecification
9 | {
10 | private String _key;
11 | private Object _result;
12 |
13 | protected override void Arrange()
14 | {
15 | _key = TestData.GenerateString();
16 | }
17 |
18 | protected override TargetRegistry CreateSubjectUnderTest()
19 | {
20 | return new TargetRegistry();
21 | }
22 |
23 | protected override void Act()
24 | {
25 | _result = Sut.Get(_key);
26 | }
27 |
28 | [Fact]
29 | public void Returns_null()
30 | {
31 | Assert.Null(_result);
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/package.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DotNetBuild.Runner
5 | $version$
6 | DotNetBuild.Runner
7 | Steven Lauwers
8 | Steven Lauwers
9 | Runner support for DotNetBuild scripts
10 | en-US
11 | https://github.com/stevenlauwers22/dotnetbuild
12 | false
13 | DotNetBuild.Runner DotNetBuild DotNet MSBuild
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/targets.compilation.buildRelease.csx:
--------------------------------------------------------------------------------
1 | using DotNetBuild.Tasks;
2 |
3 | public class BuildRelease : ITarget
4 | {
5 | public String Description
6 | {
7 | get { return "Build in release mode"; }
8 | }
9 |
10 | public Boolean ContinueOnError
11 | {
12 | get { return false; }
13 | }
14 |
15 | public IEnumerable DependsOn
16 | {
17 | get { return null; }
18 | }
19 |
20 | public Boolean Execute(TargetExecutionContext context)
21 | {
22 | var solutionDirectory = context.ConfigurationSettings.Get("SolutionDirectory");
23 | var msBuildTask = new MsBuildTask
24 | {
25 | Project = Path.Combine(solutionDirectory, "DotNetBuild.sln"),
26 | Target = "Rebuild",
27 | Parameters = "Configuration=Release"
28 | };
29 |
30 | return msBuildTask.Execute();
31 | }
32 | }
--------------------------------------------------------------------------------
/DotNetBuild.Runner/ParameterProvider.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Core;
3 |
4 | namespace DotNetBuild.Runner
5 | {
6 | public class ParameterProvider : IParameterProvider
7 | {
8 | private readonly String[] _parameters;
9 |
10 | public ParameterProvider(String[] parameters)
11 | {
12 | _parameters = parameters;
13 | }
14 |
15 | public String Get(String key)
16 | {
17 | foreach (var parameter in _parameters)
18 | {
19 | if (parameter == null)
20 | continue;
21 |
22 | if (parameter.StartsWith(key + ":", StringComparison.OrdinalIgnoreCase))
23 | {
24 | var value = parameter.Substring(key.Length + 1);
25 | return value;
26 | }
27 | }
28 |
29 | return null;
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/Core/ConfigurationSettingsTests/Get_setting_without_passing_in_a_key.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Core;
3 | using Xunit;
4 |
5 | namespace DotNetBuild.Tests.Core.ConfigurationSettingsTests
6 | {
7 | public class Get_setting_without_passing_in_a_key
8 | : TestSpecification
9 | {
10 | private String _key;
11 | private String _result;
12 |
13 | protected override void Arrange()
14 | {
15 | _key = null;
16 | }
17 |
18 | protected override ConfigurationSettings CreateSubjectUnderTest()
19 | {
20 | return new ConfigurationSettings();
21 | }
22 |
23 | protected override void Act()
24 | {
25 | _result = Sut.Get(_key);
26 | }
27 |
28 | [Fact]
29 | public void Returns_the_setting()
30 | {
31 | Assert.Null(_result);
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/Core/ConfigurationSettingsTests/Get_setting_with_unexisting_key.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Core;
3 | using Xunit;
4 |
5 | namespace DotNetBuild.Tests.Core.ConfigurationSettingsTests
6 | {
7 | public class Get_setting_with_unexisting_key
8 | : TestSpecification
9 | {
10 | private String _key;
11 | private String _result;
12 |
13 | protected override void Arrange()
14 | {
15 | _key = TestData.GenerateString();
16 | }
17 |
18 | protected override ConfigurationSettings CreateSubjectUnderTest()
19 | {
20 | return new ConfigurationSettings();
21 | }
22 |
23 | protected override void Act()
24 | {
25 | _result = Sut.Get(_key);
26 | }
27 |
28 | [Fact]
29 | public void Returns_the_setting()
30 | {
31 | Assert.Null(_result);
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/DotNetBuild.Build.ScriptCs.NonFluent/targets.ci.csx:
--------------------------------------------------------------------------------
1 | public class CI : ITarget
2 | {
3 | public String Description
4 | {
5 | get { return "Continuous integration target"; }
6 | }
7 |
8 | public Boolean ContinueOnError
9 | {
10 | get { return false; }
11 | }
12 |
13 | public IEnumerable DependsOn
14 | {
15 | get
16 | {
17 | return new List
18 | {
19 | new UpdateVersionNumber(),
20 | new BuildRelease(),
21 | new RunTests(),
22 | new CreateCorePackage(),
23 | new CreateRunnerPackage(),
24 | new CreateRunnerAssemblyPackage(),
25 | new CreateRunnerScriptCsPackage(),
26 | new CreateTasksPackage()
27 | };
28 | }
29 | }
30 |
31 | public Boolean Execute(TargetExecutionContext context)
32 | {
33 | return true;
34 | }
35 | }
--------------------------------------------------------------------------------
/DotNetBuild.Tests/Runner/Facilities/State/StateRegistryTests/Get_state_with_unexisting_key.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using DotNetBuild.Runner.Facilities.State;
3 | using Xunit;
4 |
5 | namespace DotNetBuild.Tests.Runner.Facilities.State.StateRegistryTests
6 | {
7 | public class Get_state_with_unexisting_key
8 | : TestSpecification
9 | {
10 | private String _key;
11 | private Object _result;
12 |
13 | protected override void Arrange()
14 | {
15 | _key = TestData.GenerateString();
16 | }
17 |
18 | protected override StateRegistry CreateSubjectUnderTest()
19 | {
20 | return new StateRegistry();
21 | }
22 |
23 | protected override void Act()
24 | {
25 | _result = Sut.Get