Skip to content

Commit 6c0e8ca

Browse files
Add [GeneratedCode] attribute to generated code and update .csproj to include the T4 template generator
1 parent d7fa51c commit 6c0e8ca

4 files changed

Lines changed: 42 additions & 6 deletions

File tree

src/Pure.DI.Core/Components/Api.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22
// <auto-generated/>
33
#if !PUREDI_API_SUPPRESSION || PUREDI_API_V2
44
#pragma warning disable
@@ -1216,6 +1216,7 @@ internal enum Hint
12161216
/// <seealso cref="IConfiguration.GenericTypeArgument{T}"/>
12171217
[global::System.AttributeUsage(global::System.AttributeTargets.Class | global::System.AttributeTargets.Interface | global::System.AttributeTargets.Struct | global::System.AttributeTargets.Enum)]
12181218
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1219+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
12191220
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
12201221
#endif
12211222
internal sealed class GenericTypeArgumentAttribute: global::System.Attribute { }
@@ -1271,6 +1272,7 @@ internal sealed class GenericTypeArgumentAttribute: global::System.Attribute { }
12711272
/// <seealso cref="TypeAttribute"/>
12721273
[global::System.AttributeUsage(global::System.AttributeTargets.Constructor | global::System.AttributeTargets.Method | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
12731274
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1275+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
12741276
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
12751277
#endif
12761278
internal class OrdinalAttribute: global::System.Attribute
@@ -1338,6 +1340,7 @@ public OrdinalAttribute(int ordinal = 0) { }
13381340
/// <seealso cref="TypeAttribute"/>
13391341
[global::System.AttributeUsage(global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
13401342
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1343+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
13411344
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
13421345
#endif
13431346
internal class TagAttribute: global::System.Attribute
@@ -1399,6 +1402,7 @@ public TagAttribute(object tag) { }
13991402
/// <seealso cref="OrdinalAttribute"/>
14001403
[global::System.AttributeUsage(global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
14011404
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1405+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
14021406
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
14031407
#endif
14041408
internal class TypeAttribute: global::System.Attribute
@@ -1420,6 +1424,7 @@ public TypeAttribute(global::System.Type type) { }
14201424
/// <seealso cref="TagAttribute"/>
14211425
[global::System.AttributeUsage(global::System.AttributeTargets.Constructor | global::System.AttributeTargets.Method | global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field)]
14221426
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1427+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
14231428
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
14241429
#endif
14251430
internal class DependencyAttribute: global::System.Attribute
@@ -1461,6 +1466,7 @@ public DependencyAttribute(object? tag = null, int ordinal = 0) { }
14611466
/// <seealso cref="RootKinds.Exposed"/>
14621467
[global::System.AttributeUsage(global::System.AttributeTargets.Property | global::System.AttributeTargets.Method | global::System.AttributeTargets.Field, AllowMultiple = true)]
14631468
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1469+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
14641470
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
14651471
#endif
14661472
internal class BindAttribute: global::System.Attribute
@@ -1604,6 +1610,7 @@ internal enum RootKinds
16041610
/// <seealso cref="IConfiguration.Bind{T}"/>
16051611
/// <seealso cref="IBinding.Tags"/>
16061612
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1613+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
16071614
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
16081615
#endif
16091616
internal partial class Tag
@@ -1716,6 +1723,7 @@ internal partial class Tag
17161723
/// These names serve as standardized identifiers for common DI components and behaviors.
17171724
/// </remarks>
17181725
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1726+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
17191727
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
17201728
#endif
17211729
internal partial class Name
@@ -1743,6 +1751,7 @@ internal interface IOwned
17431751
/// <seealso cref="IOwned"/>
17441752
/// <seealso cref="IConfiguration.Accumulate{T,TAccumulator}"/>
17451753
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1754+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
17461755
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
17471756
#endif
17481757
internal sealed partial class Owned: global::System.Collections.Generic.List<object>, global::Pure.DI.IOwned
@@ -1930,6 +1939,7 @@ public void Dispose()
19301939
#endif
19311940

19321941
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1942+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
19331943
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
19341944
#endif
19351945
private class DebugView
@@ -5785,6 +5795,7 @@ internal interface IContext
57855795
/// </summary>
57865796
/// <seealso cref="Setup"/>
57875797
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
5798+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
57885799
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
57895800
#endif
57905801
internal static class DI
@@ -5823,6 +5834,7 @@ internal static IConfiguration Setup(string compositionTypeName = "", Compositio
58235834
}
58245835

58255836
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
5837+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
58265838
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
58275839
#endif
58285840
private sealed class Configuration: IConfiguration, IBinding
@@ -8310,6 +8322,7 @@ public IConfiguration PerBlock<T1, T2, T3, T4, T5, T6, T7, T8, T>(global::System
83108322
/// For internal use.
83118323
/// </summary>
83128324
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
8325+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
83138326
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
83148327
#endif
83158328
internal struct Pair<TValue>
@@ -8328,6 +8341,7 @@ public Pair(global::System.Type key, TValue value)
83288341
/// For internal use.
83298342
/// </summary>
83308343
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
8344+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
83318345
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
83328346
#endif
83338347
internal static class Buckets<TValue>

src/Pure.DI.Core/Components/Api.g.tt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@ namespace Pure.DI
12211221
/// <seealso cref="IConfiguration.GenericTypeArgument{T}"/>
12221222
[global::System.AttributeUsage(global::System.AttributeTargets.Class | global::System.AttributeTargets.Interface | global::System.AttributeTargets.Struct | global::System.AttributeTargets.Enum)]
12231223
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1224+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
12241225
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
12251226
#endif
12261227
internal sealed class GenericTypeArgumentAttribute: global::System.Attribute { }
@@ -1276,6 +1277,7 @@ namespace Pure.DI
12761277
/// <seealso cref="TypeAttribute"/>
12771278
[global::System.AttributeUsage(global::System.AttributeTargets.Constructor | global::System.AttributeTargets.Method | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
12781279
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1280+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
12791281
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
12801282
#endif
12811283
internal class OrdinalAttribute: global::System.Attribute
@@ -1343,6 +1345,7 @@ namespace Pure.DI
13431345
/// <seealso cref="TypeAttribute"/>
13441346
[global::System.AttributeUsage(global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
13451347
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1348+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
13461349
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
13471350
#endif
13481351
internal class TagAttribute: global::System.Attribute
@@ -1404,6 +1407,7 @@ namespace Pure.DI
14041407
/// <seealso cref="OrdinalAttribute"/>
14051408
[global::System.AttributeUsage(global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field, AllowMultiple = false)]
14061409
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1410+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
14071411
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
14081412
#endif
14091413
internal class TypeAttribute: global::System.Attribute
@@ -1425,6 +1429,7 @@ namespace Pure.DI
14251429
/// <seealso cref="TagAttribute"/>
14261430
[global::System.AttributeUsage(global::System.AttributeTargets.Constructor | global::System.AttributeTargets.Method | global::System.AttributeTargets.Parameter | global::System.AttributeTargets.Property | global::System.AttributeTargets.Field)]
14271431
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1432+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
14281433
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
14291434
#endif
14301435
internal class DependencyAttribute: global::System.Attribute
@@ -1466,6 +1471,7 @@ namespace Pure.DI
14661471
/// <seealso cref="RootKinds.Exposed"/>
14671472
[global::System.AttributeUsage(global::System.AttributeTargets.Property | global::System.AttributeTargets.Method | global::System.AttributeTargets.Field, AllowMultiple = true)]
14681473
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1474+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
14691475
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
14701476
#endif
14711477
internal class BindAttribute: global::System.Attribute
@@ -1609,6 +1615,7 @@ namespace Pure.DI
16091615
/// <seealso cref="IConfiguration.Bind{T}"/>
16101616
/// <seealso cref="IBinding.Tags"/>
16111617
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1618+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
16121619
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
16131620
#endif
16141621
internal partial class Tag
@@ -1721,6 +1728,7 @@ namespace Pure.DI
17211728
/// These names serve as standardized identifiers for common DI components and behaviors.
17221729
/// </remarks>
17231730
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1731+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
17241732
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
17251733
#endif
17261734
internal partial class Name
@@ -1748,6 +1756,7 @@ namespace Pure.DI
17481756
/// <seealso cref="IOwned"/>
17491757
/// <seealso cref="IConfiguration.Accumulate{T,TAccumulator}"/>
17501758
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1759+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
17511760
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
17521761
#endif
17531762
internal sealed partial class Owned: global::System.Collections.Generic.List<object>, global::Pure.DI.IOwned
@@ -1935,6 +1944,7 @@ namespace Pure.DI
19351944
#endif
19361945

19371946
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
1947+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
19381948
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
19391949
#endif
19401950
private class DebugView
@@ -3292,6 +3302,7 @@ var comments = string.Join(Environment.NewLine, GetSuffixes(1, i + 1).Select(suf
32923302
/// </summary>
32933303
/// <seealso cref="Setup"/>
32943304
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
3305+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
32953306
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
32963307
#endif
32973308
internal static class DI
@@ -3330,6 +3341,7 @@ var comments = string.Join(Environment.NewLine, GetSuffixes(1, i + 1).Select(suf
33303341
}
33313342

33323343
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
3344+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
33333345
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
33343346
#endif
33353347
private sealed class Configuration: IConfiguration, IBinding
@@ -3572,6 +3584,7 @@ var typeArgs = string.Join(", ", GetSuffixes(1, i + 1).Select(suffix => $"T{suff
35723584
/// For internal use.
35733585
/// </summary>
35743586
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
3587+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
35753588
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
35763589
#endif
35773590
internal struct Pair<TValue>
@@ -3590,6 +3603,7 @@ var typeArgs = string.Join(", ", GetSuffixes(1, i + 1).Select(suffix => $"T{suff
35903603
/// For internal use.
35913604
/// </summary>
35923605
#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1
3606+
[global::System.CodeDom.Compiler.GeneratedCode("Pure.DI", "")]
35933607
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
35943608
#endif
35953609
internal static class Buckets<TValue>

src/Pure.DI.Core/Core/Code/CompositionClassBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public CompositionCode Build(CompositionCode composition)
4141

4242
classCommenter.AddComments(composition, Unit.Shared);
4343
code.AppendLine(new Line(int.MinValue, "#if !NET20 && !NET35 && !NETSTANDARD1_0 && !NETSTANDARD1_1 && !NETSTANDARD1_2 && !NETSTANDARD1_3 && !NETSTANDARD1_4 && !NETSTANDARD1_5 && !NETSTANDARD1_6 && !NETCOREAPP1_0 && !NETCOREAPP1_1 // Code coverage"));
44+
code.AppendLine($"[{Names.SystemNamespace}CodeDom.Compiler.GeneratedCode(\"Pure.DI\", \"\")]");
4445
code.AppendLine($"[{Names.SystemNamespace}Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]");
4546
code.AppendLine(new Line(int.MinValue, "#endif // Code coverage"));
4647
var implementingInterfaces = new List<string>();
@@ -83,4 +84,4 @@ public CompositionCode Build(CompositionCode composition)
8384
code.AppendLine("#pragma warning restore CS0162");
8485
return composition;
8586
}
86-
}
87+
}

src/Pure.DI.Core/Pure.DI.Core.csproj

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,12 @@
1515
</PackageReference>
1616
<PackageReference Include="IndexRange" Version="1.1.1" />
1717
<Compile Update="Components\Api.g.cs">
18-
<LastGenOutput>GenericTypeArguments.g.cs</LastGenOutput>
19-
<Generator>TextTemplatingFileGenerator</Generator>
2018
<AutoGen>True</AutoGen>
2119
<DesignTime>True</DesignTime>
2220
<DependentUpon>Api.g.tt</DependentUpon>
2321
</Compile>
2422
<EmbeddedResource Include="Components\Api.g.cs" />
2523
<Compile Update="Components\GenericTypeArguments.g.cs">
26-
<LastGenOutput>GenericTypeArguments.g.cs</LastGenOutput>
27-
<Generator>TextTemplatingFileGenerator</Generator>
2824
<AutoGen>True</AutoGen>
2925
<DesignTime>True</DesignTime>
3026
<DependentUpon>GenericTypeArguments.g.tt</DependentUpon>
@@ -45,5 +41,16 @@
4541
<DependentUpon>Strings.resx</DependentUpon>
4642
</Compile>
4743
</ItemGroup>
44+
45+
<ItemGroup>
46+
<None Update="Components\Api.g.tt">
47+
<Generator>TextTemplatingFileGenerator</Generator>
48+
<LastGenOutput>Api.g.cs</LastGenOutput>
49+
</None>
50+
<None Update="Components\GenericTypeArguments.g.tt">
51+
<Generator>TextTemplatingFileGenerator</Generator>
52+
<LastGenOutput>GenericTypeArguments.g.cs</LastGenOutput>
53+
</None>
54+
</ItemGroup>
4855

4956
</Project>

0 commit comments

Comments
 (0)