Skip to content

Commit 3007f30

Browse files
authored
Fix Build, Update packages (#202)
* Fix Build, Update packages * Update version due to updated Dependencies
1 parent 83b239a commit 3007f30

File tree

263 files changed

+18455
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+18455
-16
lines changed

src/Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</PropertyGroup>
3333

3434
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
35-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
35+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
3636
</ItemGroup>
3737

3838
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
@@ -47,9 +47,9 @@
4747
<ItemGroup>
4848
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
4949
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.507" PrivateAssets="all" />
50-
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0" PrivateAssets="All" />
50+
<PackageReference Include="Roslynator.Analyzers" Version="4.7.0" PrivateAssets="All" />
5151
</ItemGroup>
5252
<ItemGroup>
5353
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" />
5454
</ItemGroup>
55-
</Project>
55+
</Project>

src/Splat.DependencyInjection.SourceGenerator.Tests/ModuleInitializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ public static class ModuleInitializer
1515
/// Initializes the source generators.
1616
/// </summary>
1717
[ModuleInitializer]
18-
public static void Init() => VerifySourceGenerators.Enable();
18+
public static void Init() => VerifySourceGenerators.Initialize();
1919
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//HintName: Splat.DI.Reg.g.cs
2+
3+
// <auto-generated />
4+
namespace Splat
5+
{
6+
internal static partial class SplatRegistrations
7+
{
8+
static partial void SetupIOCInternal(Splat.IDependencyResolver resolver)
9+
{
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
//HintName: Splat.DI.g.cs
2+
3+
// <auto-generated />
4+
namespace Splat
5+
{
6+
/// <summary>
7+
/// Extension methods for the Splat DI source generator.
8+
/// </summary>
9+
internal static partial class SplatRegistrations
10+
{
11+
/// <summary>
12+
/// Registers a class with its concrete class.
13+
/// </summary>
14+
public static void Register<TInterface, TConcrete>()
15+
{
16+
}
17+
18+
/// <summary>
19+
/// Registers a class with its concrete class.
20+
/// </summary>
21+
/// <param name="contract">Optional contract.</param>
22+
public static void Register<TInterface, TConcrete>(string contract)
23+
{
24+
}
25+
26+
/// <summary>
27+
/// Registers a class with its concrete class.
28+
/// </summary>
29+
public static void RegisterLazySingleton<TInterface, TConcrete>()
30+
{
31+
}
32+
33+
/// <summary>
34+
/// Registers a class with its concrete class.
35+
/// </summary>
36+
/// <param name="mode">The threading mode.</param>
37+
public static void RegisterLazySingleton<TInterface, TConcrete>(System.Threading.LazyThreadSafetyMode mode)
38+
{
39+
}
40+
41+
/// <summary>
42+
/// Registers a class with its concrete class.
43+
/// </summary>
44+
/// <param name="contract">Optional contract.</param>
45+
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract)
46+
{
47+
}
48+
49+
/// <summary>
50+
/// Registers a class with its concrete class.
51+
/// </summary>
52+
/// <param name="contract">Optional contract.</param>
53+
/// <param name="mode">The threading mode.</param>
54+
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract, System.Threading.LazyThreadSafetyMode mode)
55+
{
56+
}
57+
58+
/// <summary>
59+
/// Registers a class with its concrete class.
60+
/// </summary>
61+
public static void Register<T>()
62+
{
63+
}
64+
65+
66+
/// <summary>
67+
/// Registers a class with its concrete class.
68+
/// </summary>
69+
/// <param name="contract">Optional contract.</param>
70+
public static void Register<T>(string contract)
71+
{
72+
}
73+
74+
/// <summary>
75+
/// Registers a lazy class with its concrete class.
76+
/// </summary>
77+
public static void RegisterLazySingleton<T>()
78+
{
79+
}
80+
81+
82+
/// <summary>
83+
/// Registers a lazy class with its concrete class.
84+
/// </summary>
85+
/// <param name="contract">Optional contract.</param>
86+
public static void RegisterLazySingleton<T>(string contract)
87+
{
88+
}
89+
90+
/// <summary>
91+
/// Proxy for the Splat SetService.
92+
/// </summary>
93+
public static void RegisterConstant<T>(T instance) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance);
94+
95+
/// <summary>
96+
/// Proxy for the Splat SetService.
97+
/// </summary>
98+
/// <param name="contract">Optional contract.</param>
99+
public static void RegisterConstant<T>(T instance, string contract) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance, contract);
100+
101+
/// <summary>
102+
/// Registers the registrations.
103+
/// </summary>
104+
public static void SetupIOC()
105+
{
106+
SetupIOCInternal(Splat.Locator.GetLocator());
107+
}
108+
109+
/// <summary>
110+
/// Registers the registrations.
111+
/// </summary>
112+
/// <param name="resolver">The resolver to register with.</param>
113+
public static void SetupIOC(Splat.IDependencyResolver resolver)
114+
{
115+
SetupIOCInternal(resolver);
116+
}
117+
118+
119+
static partial void SetupIOCInternal(Splat.IDependencyResolver resolver);
120+
}
121+
122+
/// <summary>
123+
/// Makes the property get added by the DI engine.
124+
/// </summary>
125+
[System.AttributeUsage(System.AttributeTargets.Property)]
126+
internal class DependencyInjectionPropertyAttribute : System.Attribute
127+
{
128+
/// <summary>
129+
/// Initializes a new instance of the <see cref="DependencyInjectionPropertyAttribute"/> class.
130+
/// </summary>
131+
public DependencyInjectionPropertyAttribute()
132+
{
133+
}
134+
}
135+
136+
/// <summary>
137+
/// Makes this the constructor used by the DI engine.
138+
/// </summary>
139+
[System.AttributeUsage(System.AttributeTargets.Constructor)]
140+
internal class DependencyInjectionConstructorAttribute : System.Attribute
141+
{
142+
/// <summary>
143+
/// Initializes a new instance of the <see cref="DependencyInjectionConstructorAttribute"/> class.
144+
/// </summary>
145+
public DependencyInjectionConstructorAttribute()
146+
{
147+
}
148+
}
149+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
Diagnostics: [
3+
{
4+
Id: SPLATDI005,
5+
Title: Constructors must not have a circular dependency,
6+
Severity: Error,
7+
WarningLevel: 0,
8+
Location: Unknown File: (26,36)-(26,44),
9+
Description: ,
10+
HelpLink: ,
11+
MessageFormat: Constructor parameters must not have a circular dependency to another registered resource,
12+
Message: Constructor parameters must not have a circular dependency to another registered resource,
13+
Category: Compiler
14+
},
15+
{
16+
Id: SPLATDI005,
17+
Title: Constructors must not have a circular dependency,
18+
Severity: Error,
19+
WarningLevel: 0,
20+
Location: Unknown File: (18,36)-(18,44),
21+
Description: ,
22+
HelpLink: ,
23+
MessageFormat: Constructor parameters must not have a circular dependency to another registered resource,
24+
Message: Constructor parameters must not have a circular dependency to another registered resource,
25+
Category: Compiler
26+
}
27+
]
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//HintName: Splat.DI.Reg.g.cs
2+
3+
// <auto-generated />
4+
namespace Splat
5+
{
6+
internal static partial class SplatRegistrations
7+
{
8+
static partial void SetupIOCInternal(Splat.IDependencyResolver resolver)
9+
{
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
//HintName: Splat.DI.g.cs
2+
3+
// <auto-generated />
4+
namespace Splat
5+
{
6+
/// <summary>
7+
/// Extension methods for the Splat DI source generator.
8+
/// </summary>
9+
internal static partial class SplatRegistrations
10+
{
11+
/// <summary>
12+
/// Registers a class with its concrete class.
13+
/// </summary>
14+
public static void Register<TInterface, TConcrete>()
15+
{
16+
}
17+
18+
/// <summary>
19+
/// Registers a class with its concrete class.
20+
/// </summary>
21+
/// <param name="contract">Optional contract.</param>
22+
public static void Register<TInterface, TConcrete>(string contract)
23+
{
24+
}
25+
26+
/// <summary>
27+
/// Registers a class with its concrete class.
28+
/// </summary>
29+
public static void RegisterLazySingleton<TInterface, TConcrete>()
30+
{
31+
}
32+
33+
/// <summary>
34+
/// Registers a class with its concrete class.
35+
/// </summary>
36+
/// <param name="mode">The threading mode.</param>
37+
public static void RegisterLazySingleton<TInterface, TConcrete>(System.Threading.LazyThreadSafetyMode mode)
38+
{
39+
}
40+
41+
/// <summary>
42+
/// Registers a class with its concrete class.
43+
/// </summary>
44+
/// <param name="contract">Optional contract.</param>
45+
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract)
46+
{
47+
}
48+
49+
/// <summary>
50+
/// Registers a class with its concrete class.
51+
/// </summary>
52+
/// <param name="contract">Optional contract.</param>
53+
/// <param name="mode">The threading mode.</param>
54+
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract, System.Threading.LazyThreadSafetyMode mode)
55+
{
56+
}
57+
58+
/// <summary>
59+
/// Registers a class with its concrete class.
60+
/// </summary>
61+
public static void Register<T>()
62+
{
63+
}
64+
65+
66+
/// <summary>
67+
/// Registers a class with its concrete class.
68+
/// </summary>
69+
/// <param name="contract">Optional contract.</param>
70+
public static void Register<T>(string contract)
71+
{
72+
}
73+
74+
/// <summary>
75+
/// Registers a lazy class with its concrete class.
76+
/// </summary>
77+
public static void RegisterLazySingleton<T>()
78+
{
79+
}
80+
81+
82+
/// <summary>
83+
/// Registers a lazy class with its concrete class.
84+
/// </summary>
85+
/// <param name="contract">Optional contract.</param>
86+
public static void RegisterLazySingleton<T>(string contract)
87+
{
88+
}
89+
90+
/// <summary>
91+
/// Proxy for the Splat SetService.
92+
/// </summary>
93+
public static void RegisterConstant<T>(T instance) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance);
94+
95+
/// <summary>
96+
/// Proxy for the Splat SetService.
97+
/// </summary>
98+
/// <param name="contract">Optional contract.</param>
99+
public static void RegisterConstant<T>(T instance, string contract) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance, contract);
100+
101+
/// <summary>
102+
/// Registers the registrations.
103+
/// </summary>
104+
public static void SetupIOC()
105+
{
106+
SetupIOCInternal(Splat.Locator.GetLocator());
107+
}
108+
109+
/// <summary>
110+
/// Registers the registrations.
111+
/// </summary>
112+
/// <param name="resolver">The resolver to register with.</param>
113+
public static void SetupIOC(Splat.IDependencyResolver resolver)
114+
{
115+
SetupIOCInternal(resolver);
116+
}
117+
118+
119+
static partial void SetupIOCInternal(Splat.IDependencyResolver resolver);
120+
}
121+
122+
/// <summary>
123+
/// Makes the property get added by the DI engine.
124+
/// </summary>
125+
[System.AttributeUsage(System.AttributeTargets.Property)]
126+
internal class DependencyInjectionPropertyAttribute : System.Attribute
127+
{
128+
/// <summary>
129+
/// Initializes a new instance of the <see cref="DependencyInjectionPropertyAttribute"/> class.
130+
/// </summary>
131+
public DependencyInjectionPropertyAttribute()
132+
{
133+
}
134+
}
135+
136+
/// <summary>
137+
/// Makes this the constructor used by the DI engine.
138+
/// </summary>
139+
[System.AttributeUsage(System.AttributeTargets.Constructor)]
140+
internal class DependencyInjectionConstructorAttribute : System.Attribute
141+
{
142+
/// <summary>
143+
/// Initializes a new instance of the <see cref="DependencyInjectionConstructorAttribute"/> class.
144+
/// </summary>
145+
public DependencyInjectionConstructorAttribute()
146+
{
147+
}
148+
}
149+
}

0 commit comments

Comments
 (0)