├── src ├── Example │ ├── IAnimal.cs │ ├── Animals │ │ ├── Dog.cs │ │ └── Cat.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Example.csproj ├── Example.Tests │ ├── packages.config │ ├── AnimalTests.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Example.Tests.csproj └── Example.sln ├── tools └── packages.config ├── appveyor.yml ├── README.md ├── .gitignore └── LICENSE /src/Example/IAnimal.cs: -------------------------------------------------------------------------------- 1 | namespace Example 2 | { 3 | public interface IAnimal 4 | { 5 | string Talk(); 6 | } 7 | } -------------------------------------------------------------------------------- /tools/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 1.0.{build} 2 | image: Visual Studio 2015 3 | build_script: 4 | - cmd: PowerShell -Version 2.0 .\build.ps1 5 | test: off 6 | -------------------------------------------------------------------------------- /src/Example.Tests/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/Example/Animals/Dog.cs: -------------------------------------------------------------------------------- 1 | namespace Example.Animals 2 | { 3 | public sealed class Dog : IAnimal 4 | { 5 | public string Talk() 6 | { 7 | return "Woof"; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Example/Animals/Cat.cs: -------------------------------------------------------------------------------- 1 | namespace Example.Animals 2 | { 3 | public sealed class Cat : IAnimal 4 | { 5 | public string Talk() 6 | { 7 | return "Meow"; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cake example repository 2 | 3 | This repository is used as an minimal example of using the [Cake build system](https://cakebuild.net) 4 | 5 | You can read more in the Cake [Getting Started guide](https://cakebuild.net/docs/tutorials/getting-started). 6 | 7 | [![Build Status](https://ci.appveyor.com/api/projects/status/dfi1xib48d9diiac?svg=true)](https://ci.appveyor.com/project/cakebuild/example) 8 | -------------------------------------------------------------------------------- /src/Example.Tests/AnimalTests.cs: -------------------------------------------------------------------------------- 1 | using Example.Animals; 2 | using NUnit.Framework; 3 | 4 | namespace Example.Tests 5 | { 6 | [TestFixture] 7 | public sealed class AnimalTests 8 | { 9 | [Test] 10 | public void The_Cat_Should_Meow() 11 | { 12 | // Given 13 | var cat = new Cat(); 14 | 15 | // When 16 | var result = cat.Talk(); 17 | 18 | // Then 19 | Assert.AreEqual("Meow", result); 20 | } 21 | 22 | [Test] 23 | public void The_Dog_Should_Bark() 24 | { 25 | // Given 26 | var dog = new Dog(); 27 | 28 | // When 29 | var result = dog.Talk(); 30 | 31 | // Then 32 | Assert.AreEqual("Woof", result); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Misc folders 2 | [Bb]in/ 3 | [Oo]bj/ 4 | [Pp]ackages/ 5 | 6 | # Build related 7 | tools/** 8 | !tools/packages.config 9 | 10 | ## Ignore Visual Studio temporary files, build results, and 11 | ## files generated by popular Visual Studio add-ons. 12 | 13 | # User-specific files 14 | *.suo 15 | *.user 16 | *.sln.docstates 17 | *.sln.ide/ 18 | *.userprefs 19 | *.GhostDoc.xml 20 | 21 | # Build results 22 | [Dd]ebug/ 23 | [Rr]elease/ 24 | x64/ 25 | *_i.c 26 | *_p.c 27 | *.ilk 28 | *.meta 29 | *.obj 30 | *.pch 31 | *.pdb 32 | *.pgc 33 | *.pgd 34 | *.rsp 35 | *.sbr 36 | *.tlb 37 | *.tli 38 | *.tlh 39 | *.tmp 40 | *.log 41 | *.vspscc 42 | *.vssscc 43 | .builds 44 | 45 | # Visual Studio profiler 46 | *.psess 47 | *.vsp 48 | *.vspx 49 | 50 | # ReSharper is a .NET coding add-in 51 | _ReSharper* 52 | 53 | # NCrunch 54 | *.ncrunch* 55 | .*crunch*.local.xml 56 | _NCrunch_* 57 | 58 | # NuGet Packages Directory 59 | packages 60 | 61 | # Windows 62 | Thumbs.db 63 | 64 | # NUnit 65 | TestResult.xml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 - 2016 Patrik Svensson, Mattias Karlsson, Gary Ewan Park and contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /src/Example.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.31101.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example.Tests", "Example.Tests\Example.Tests.csproj", "{7B3656D1-98AD-45C8-826F-2E5A13BED71E}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example", "Example\Example.csproj", "{6E099E06-32E2-441F-B831-331ECB76FC4E}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {7B3656D1-98AD-45C8-826F-2E5A13BED71E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {7B3656D1-98AD-45C8-826F-2E5A13BED71E}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {7B3656D1-98AD-45C8-826F-2E5A13BED71E}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {7B3656D1-98AD-45C8-826F-2E5A13BED71E}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {6E099E06-32E2-441F-B831-331ECB76FC4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {6E099E06-32E2-441F-B831-331ECB76FC4E}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {6E099E06-32E2-441F-B831-331ECB76FC4E}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {6E099E06-32E2-441F-B831-331ECB76FC4E}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /src/Example/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Example.Core")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Example.Core")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("8c55a928-786b-47a7-8278-9524a43e2b8c")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /src/Example.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Example.Tests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Example.Tests")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("e704d4d2-e0b9-4163-b59b-f96150f36db5")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /src/Example/Example.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {6E099E06-32E2-441F-B831-331ECB76FC4E} 8 | Library 9 | Properties 10 | Example 11 | Example 12 | v4.5 13 | 512 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\Debug\ 20 | DEBUG;TRACE 21 | prompt 22 | 4 23 | 24 | 25 | pdbonly 26 | true 27 | bin\Release\ 28 | TRACE 29 | prompt 30 | 4 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 55 | -------------------------------------------------------------------------------- /src/Example.Tests/Example.Tests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {7B3656D1-98AD-45C8-826F-2E5A13BED71E} 8 | Library 9 | Properties 10 | Example.Tests 11 | Example.Tests 12 | v4.5 13 | 512 14 | 3ddfa5c8 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | ..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll 36 | True 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | {6E099E06-32E2-441F-B831-331ECB76FC4E} 53 | Example 54 | 55 | 56 | 57 | 58 | 59 | 60 | 67 | --------------------------------------------------------------------------------