You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add advanced multi-file Cake build example with dependency injection (#6)
- Add multifile-build-advanced/ directory with organized structure
- Implement service pattern with IMyService/MyService for GitVersion logic
- Add dependency injection configuration in IoC.cs
- Organize files into Models/ and Services/ subdirectories
- Add PreClean task with IsDependeeOf relationship
- Update BuildData model to include Rebuild property
- Add GitHub Actions workflow for advanced multi-file build
- Update README.md with comprehensive documentation
This example demonstrates advanced Cake build patterns including:
- Multi-file organization with proper separation of concerns
- Dependency injection and service registration
- Partial methods for extensibility
- Advanced task dependency management
- Clean architecture with Models and Services folders
Copy file name to clipboardExpand all lines: README.md
+26-4Lines changed: 26 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,23 @@
2
2
3
3
[](https://github.com/cake-build/cakesdk-example/actions/workflows/Cake_Sdk-MultiFile.yml)
4
4
5
+
[](https://github.com/cake-build/cakesdk-example/actions/workflows/Cake_Sdk-MultiFile-Advanced.yml)
6
+
5
7
[](https://github.com/cake-build/cakesdk-example/actions/workflows/Cake_Sdk-Proj.yml)
6
8
7
9
8
10
# Cake.Sdk Example Repository
9
11
10
-
This repository demonstrates minimal, modern usage of [Cake.Sdk](https://www.nuget.org/packages/Cake.Sdk/) for .NET build automation. It showcases both file-based and project-based approaches for defining Cake build scripts, and includes a minimal .NET class library.
12
+
This repository demonstrates minimal, modern usage of [Cake.Sdk](https://www.nuget.org/packages/Cake.Sdk/) for .NET build automation. It showcases file-based, multi-file-based, and project-based approaches for defining Cake build scripts, and includes a minimal .NET class library.
11
13
12
14
## Features
13
15
14
16
-**File-based build script**: Standalone `build.cs` using Cake Sdk directives.
17
+
-**Multi-file-based build script**: `multifile-build/build.cs` with additional files in build folder.
18
+
-**Advanced multi-file-based build script**: `multifile-build-advanced/build.cs` with organized structure, dependency injection, and service patterns.
0 commit comments