Skip to content

Commit 6dda6cd

Browse files
author
Colin Wilmans
committed
Version bump to v1.0, update of readme
1 parent 9db0f33 commit 6dda6cd

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
11
# Source Depend
22

3-
A source generator for C# that uses [Roslyn](https://github.com/dotnet/roslyn) (the C# compiler) to help you with dependency injection (DI). It saves you from writing the constructor because this will be written for you (during compile time). Just tag the member with a **\[Dependency\]** attribute.
3+
Simply tag members with a `[Dependency]` attribute and those will be added to the constructor, saving you from manual coding the constructor. Example:
4+
5+
```csharp
6+
public partial class ExampleService
7+
{
8+
[Dependency]
9+
private readonly IRepository repository;
10+
11+
// Etc...
12+
}
13+
```
14+
15+
A C# source generator focused on dependency injection (DI).
416

517
[![NuGet version (sourcedepend)](https://img.shields.io/nuget/v/sourcedepend?color=blue)](https://www.nuget.org/packages/sourcedepend/)
618
[![License](https://img.shields.io/github/license/crwsolutions/sourcedepend.svg)](https://github.com/crwsolutions/sourcedepend/blob/master/LICENSE.txt)
719

820
### Version history
921

10-
- v0.1\. First implementation.
22+
- v1.0 Handle more complex scenarios':
23+
+ class without namespace should not write a namespace.
24+
+ repeat type arguments of generics.
25+
+ repeat base constructor parameter if necessary.
26+
+ (added unit tests).
27+
- v0.4\. Added null-checks.
28+
- v0.3\. Complete Rewrite: reorganized the code.
29+
+ allow one level of inheritance.
1130
- v0.2\. Complete rewrite from ISourceGenerator to IIncrementalGenerator, this should boost performance
1231
+ keep sealed and accessibility intact.
13-
- v0.3\. Complete Rewrite: reorganized the code.
14-
+ Allow one level of inheritance.
15-
- v0.4\. Added null-checks.
32+
- v0.1\. First implementation.
1633

1734
## How to use it
1835

src/SourceDepend/SourceDepend.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@
77
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
88
<PackageId>SourceDepend</PackageId>
99
<VersionSuffix Condition="'$(VersionSuffix)' == ''">0</VersionSuffix>
10-
<Version>0.4.$(VersionSuffix)</Version>
10+
<Version>1.0.$(VersionSuffix)</Version>
1111
<Authors>Colin Wilmans</Authors>
1212
<PackageDescription>A source generator for C# that uses Roslyn (the C# compiler) to allow you to generate your constructor for injection during compile time.</PackageDescription>
1313
<RepositoryUrl>https://github.com/crwsolutions/sourcedepend.git</RepositoryUrl>
1414
<RepositoryType>git</RepositoryType>
15-
<PackageTags>source generator</PackageTags>
15+
<PackageTags>source generator;DI;dependency injection;[Dependency];Source depend;SourceDepend</PackageTags>
1616
<PackageProjectUrl>https://github.com/crwsolutions/sourcedepend</PackageProjectUrl>
1717
<Copyright>(c) Colin Wilmans</Copyright>
1818
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1919
<IncludeBuildOutput>false</IncludeBuildOutput>
2020
<IsPackable>true</IsPackable>
2121
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
2222
<IsRoslynComponent>true</IsRoslynComponent>
23-
<Description>Source generator, generating DI plumming in your constructor</Description>
23+
<Description>Simply tag members with a [Dependency] attribute and those will be added to the constructor, saving you from manual coding. A C# source generator focused on dependency injection (DI).</Description>
2424
<PackageReadmeFile>README.md</PackageReadmeFile>
25-
<PackageReleaseNotes>Added null checks</PackageReleaseNotes>
25+
<PackageReleaseNotes>class without namespace should not write a namespace.
26+
repeat type arguments of generics.
27+
repeat base constructor parameter if necessary.</PackageReleaseNotes>
28+
<Title>Source depend</Title>
2629
</PropertyGroup>
2730
<ItemGroup>
2831
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />

0 commit comments

Comments
 (0)