https://github.com/structuremap/structuremap
A Dependency Injection/Inversion of Control tool for .NET
https://github.com/structuremap/structuremap
c-sharp ioc-container
Last synced: 10 months ago
JSON representation
A Dependency Injection/Inversion of Control tool for .NET
- Host: GitHub
- URL: https://github.com/structuremap/structuremap
- Owner: structuremap
- License: other
- Created: 2010-02-15T02:35:57.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2022-08-09T23:09:15.000Z (over 3 years ago)
- Last Synced: 2025-05-04T20:41:34.706Z (11 months ago)
- Topics: c-sharp, ioc-container
- Language: C#
- Homepage: http://structuremap.github.com
- Size: 25.6 MB
- Stars: 906
- Watchers: 65
- Forks: 275
- Open Issues: 44
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.TXT
Awesome Lists containing this project
- system-architecture-awesome - StructureMap - Dependency Injection/Inversion of Control tool for .NET. (IOC)
README
# StructureMap has been [sunsetted](https://jeremydmiller.com/2018/01/29/sunsetting-structuremap/)
See instead the newer [Lamar](https://github.com/jasperfx/lamar) library as a replacement for StructureMap in new applications. I will continue to accept pull requests and try to answer questions, but there will be no new development on StructureMap unless someone else takes over project ownership.
-- [Jeremy](http://twitter.com/jeremydmiller)
Welcome to StructureMap, the oldest Inversion of Control container for .Net.
Getting StructureMap
--------------------
[](https://gitter.im/structuremap/structuremap?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
StructureMap is available via NuGet:
```PowerShell
Install-Package StructureMap
```
Or alternatively via the .NET Core CLI:
```bash
dotnet add package structuremap
```
If you want to fix a bug or just want to tinker with an idea,
we love receiving pull requests!
Building the Source
-------------------
As of StructureMap 4.3, the codebase uses the new Dotnet CLI to build and run tests. Paket is no longer used
to resolve nuget dependencies.
1. Clone the repository: `git clone git://github.com/structuremap/structuremap.git`
1. (Optional) From the command line, `dotnet test src/StructureMap.Testing`
1. Open the solution at src/StructureMap.sln and go to town!
Note:
The StructureMap team uses Rake internally and on the [CI server](http://build.fubu-project.org/project.html?projectId=StructureMap3), but **Rake is no longer necessary in any way for developing with the StructureMap codebase**.
Please post any questions or bugs to the
[StructureMap Users mailing list](https://groups.google.com/forum/#!forum/structuremap-users).
The latest documentation is available at [http://structuremap.github.io](http://structuremap.github.io).
Thanks for trying StructureMap.
Documentation Authoring
-----------------------
StructureMap uses the [StorytellerDocGen](http://storyteller.github.io/documentation/docs/) tool to author and publish the documentation website.
The documentation is just markdown files in the *documentation* folder under the root. Code samples can be pulled from anywhere within the StructureMap codebase.
The actual web content is published manually to the [structuremap.github.com repository](https://github.com/structuremap/structuremap.github.com).
To run the documentation website locally, from the command line at the root of the StructureMap repository, either:
1. `rake docs` - If you're comfortable with Rake
1. `dotnet restore && dotnet stdocs run` - do note that this will default to the version being 1.0, but the correct version will be applied when it's actually published