Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Core
  3. Castle.Core

Castle.Core

NOASSERTIONC#v5.2.1

A .NET library providing core abstractions including DynamicProxy for runtime proxy generation and logging services.

Visit WebsiteGitHubGitHub
2.3k stars485 forks0 contributors

What is Castle.Core?

Castle Core is a foundational .NET library that provides common abstractions and utilities, including Castle DynamicProxy for runtime proxy generation and logging services. It solves the need for lightweight, cross-platform support for advanced programming patterns like aspect-oriented programming (AOP) and abstraction layers in .NET applications.

Target Audience

.NET developers building applications that require interception, logging abstraction, or dynamic proxy generation, particularly those working with the Castle Project ecosystem or implementing AOP patterns.

Value Proposition

Developers choose Castle Core for its proven, lightweight DynamicProxy generator that enables AOP without heavy frameworks, along with its cross-platform support and integration with the broader Castle Project utilities.

Overview

Castle Core, including Castle DynamicProxy, Logging Services and DictionaryAdapter

Use Cases

Best For

  • Implementing aspect-oriented programming (AOP) in .NET applications
  • Generating dynamic proxies at runtime for interception and decoration
  • Abstracting logging across different frameworks in .NET
  • Adapting dictionaries to strongly-typed interfaces for data access
  • Building cross-platform .NET libraries that require runtime code generation
  • Extending the Castle Project ecosystem with core utilities

Not Ideal For

  • Projects requiring full AppDomain or serialization support on modern .NET platforms like .NET 8/9
  • Teams with limited development environments who need simple, out-of-the-box build and test setups
  • High-performance applications where runtime proxy generation overhead is a critical concern

Pros & Cons

Pros

Lightweight DynamicProxy

Enables aspect-oriented programming through runtime proxy generation without heavy frameworks, as emphasized in the README for advanced patterns like interception.

Cross-Platform Support

Builds for multiple .NET targets including .NET Framework, .NET Standard, and modern .NET versions, ensuring broad compatibility across ecosystems.

Logging Abstraction Layer

Provides common abstractions for logging, facilitating integration with various frameworks and reducing dependency on specific logging implementations.

DictionaryAdapter Utility

Simplifies data access by adapting dictionaries to strongly-typed interfaces, improving code clarity and maintenance in data-driven applications.

Cons

Platform Feature Fragmentation

Conditional compilation symbols in the README show that features like AppDomain support and serialization are missing on .NET Standard 2.0 and newer .NET versions, creating compatibility gaps.

Complex Build Requirements

Building and testing require .NET 10 SDK and multiple runtimes (.NET Framework 4.6.2+, .NET 8,9,10), which can be burdensome for developers with limited setups.

Sparse Documentation

The README only links to external documentation without providing details, suggesting that comprehensive guides may be lacking or require additional search effort.

Frequently Asked Questions

Quick Stats

Stars2,308
Forks485
Contributors0
Open Issues23
Last commit1 month ago
CreatedSince 2011

Tags

#aspect-oriented-programming#dotnet#aop#net-standard#runtime-generation

Built With

.
.NET Framework 4.6.2
.
.NET 8
.
.NET 9

Links & Resources

Website

Included in

Core21.2k
Auto-fetched 1 day ago

Related Projects

AutoMapperAutoMapper

A convention-based object-object mapper in .NET.

Stars10,191
Forks2,409
Last commit23 days ago
HumanizerHumanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities

Stars9,666
Forks1,052
Last commit19 days ago
AngleSharpAngleSharp

:angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.

Stars5,499
Forks591
Last commit2 days ago
markdigmarkdig

A fast, powerful, CommonMark compliant, extensible Markdown processor for .NET

Stars5,244
Forks508
Last commit5 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub