Skip to content

Commit

Permalink
Fix Build, Update packages (#202)
Browse files Browse the repository at this point in the history
* Fix Build, Update packages

* Update version due to updated Dependencies
  • Loading branch information
ChrisPulman authored Jan 5, 2024
1 parent 83b239a commit 3007f30
Show file tree
Hide file tree
Showing 263 changed files with 18,455 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</PropertyGroup>

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

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
Expand All @@ -47,9 +47,9 @@
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.507" PrivateAssets="all" />
<PackageReference Include="Roslynator.Analyzers" Version="4.3.0" PrivateAssets="All" />
<PackageReference Include="Roslynator.Analyzers" Version="4.7.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" Link="stylecop.json" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ public static class ModuleInitializer
/// Initializes the source generators.
/// </summary>
[ModuleInitializer]
public static void Init() => VerifySourceGenerators.Enable();
public static void Init() => VerifySourceGenerators.Initialize();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//HintName: Splat.DI.Reg.g.cs

// <auto-generated />
namespace Splat
{
internal static partial class SplatRegistrations
{
static partial void SetupIOCInternal(Splat.IDependencyResolver resolver)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
//HintName: Splat.DI.g.cs

// <auto-generated />
namespace Splat
{
/// <summary>
/// Extension methods for the Splat DI source generator.
/// </summary>
internal static partial class SplatRegistrations
{
/// <summary>
/// Registers a class with its concrete class.
/// </summary>
public static void Register<TInterface, TConcrete>()
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void Register<TInterface, TConcrete>(string contract)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
public static void RegisterLazySingleton<TInterface, TConcrete>()
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="mode">The threading mode.</param>
public static void RegisterLazySingleton<TInterface, TConcrete>(System.Threading.LazyThreadSafetyMode mode)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
/// <param name="mode">The threading mode.</param>
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract, System.Threading.LazyThreadSafetyMode mode)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
public static void Register<T>()
{
}


/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void Register<T>(string contract)
{
}

/// <summary>
/// Registers a lazy class with its concrete class.
/// </summary>
public static void RegisterLazySingleton<T>()
{
}


/// <summary>
/// Registers a lazy class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void RegisterLazySingleton<T>(string contract)
{
}

/// <summary>
/// Proxy for the Splat SetService.
/// </summary>
public static void RegisterConstant<T>(T instance) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance);

/// <summary>
/// Proxy for the Splat SetService.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void RegisterConstant<T>(T instance, string contract) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance, contract);

/// <summary>
/// Registers the registrations.
/// </summary>
public static void SetupIOC()
{
SetupIOCInternal(Splat.Locator.GetLocator());
}

/// <summary>
/// Registers the registrations.
/// </summary>
/// <param name="resolver">The resolver to register with.</param>
public static void SetupIOC(Splat.IDependencyResolver resolver)
{
SetupIOCInternal(resolver);
}


static partial void SetupIOCInternal(Splat.IDependencyResolver resolver);
}

/// <summary>
/// Makes the property get added by the DI engine.
/// </summary>
[System.AttributeUsage(System.AttributeTargets.Property)]
internal class DependencyInjectionPropertyAttribute : System.Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="DependencyInjectionPropertyAttribute"/> class.
/// </summary>
public DependencyInjectionPropertyAttribute()
{
}
}

/// <summary>
/// Makes this the constructor used by the DI engine.
/// </summary>
[System.AttributeUsage(System.AttributeTargets.Constructor)]
internal class DependencyInjectionConstructorAttribute : System.Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="DependencyInjectionConstructorAttribute"/> class.
/// </summary>
public DependencyInjectionConstructorAttribute()
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
Diagnostics: [
{
Id: SPLATDI005,
Title: Constructors must not have a circular dependency,
Severity: Error,
WarningLevel: 0,
Location: Unknown File: (26,36)-(26,44),
Description: ,
HelpLink: ,
MessageFormat: Constructor parameters must not have a circular dependency to another registered resource,
Message: Constructor parameters must not have a circular dependency to another registered resource,
Category: Compiler
},
{
Id: SPLATDI005,
Title: Constructors must not have a circular dependency,
Severity: Error,
WarningLevel: 0,
Location: Unknown File: (18,36)-(18,44),
Description: ,
HelpLink: ,
MessageFormat: Constructor parameters must not have a circular dependency to another registered resource,
Message: Constructor parameters must not have a circular dependency to another registered resource,
Category: Compiler
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//HintName: Splat.DI.Reg.g.cs

// <auto-generated />
namespace Splat
{
internal static partial class SplatRegistrations
{
static partial void SetupIOCInternal(Splat.IDependencyResolver resolver)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
//HintName: Splat.DI.g.cs

// <auto-generated />
namespace Splat
{
/// <summary>
/// Extension methods for the Splat DI source generator.
/// </summary>
internal static partial class SplatRegistrations
{
/// <summary>
/// Registers a class with its concrete class.
/// </summary>
public static void Register<TInterface, TConcrete>()
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void Register<TInterface, TConcrete>(string contract)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
public static void RegisterLazySingleton<TInterface, TConcrete>()
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="mode">The threading mode.</param>
public static void RegisterLazySingleton<TInterface, TConcrete>(System.Threading.LazyThreadSafetyMode mode)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
/// <param name="mode">The threading mode.</param>
public static void RegisterLazySingleton<TInterface, TConcrete>(string contract, System.Threading.LazyThreadSafetyMode mode)
{
}

/// <summary>
/// Registers a class with its concrete class.
/// </summary>
public static void Register<T>()
{
}


/// <summary>
/// Registers a class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void Register<T>(string contract)
{
}

/// <summary>
/// Registers a lazy class with its concrete class.
/// </summary>
public static void RegisterLazySingleton<T>()
{
}


/// <summary>
/// Registers a lazy class with its concrete class.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void RegisterLazySingleton<T>(string contract)
{
}

/// <summary>
/// Proxy for the Splat SetService.
/// </summary>
public static void RegisterConstant<T>(T instance) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance);

/// <summary>
/// Proxy for the Splat SetService.
/// </summary>
/// <param name="contract">Optional contract.</param>
public static void RegisterConstant<T>(T instance, string contract) => Splat.Locator.CurrentMutable.RegisterConstant<T>(instance, contract);

/// <summary>
/// Registers the registrations.
/// </summary>
public static void SetupIOC()
{
SetupIOCInternal(Splat.Locator.GetLocator());
}

/// <summary>
/// Registers the registrations.
/// </summary>
/// <param name="resolver">The resolver to register with.</param>
public static void SetupIOC(Splat.IDependencyResolver resolver)
{
SetupIOCInternal(resolver);
}


static partial void SetupIOCInternal(Splat.IDependencyResolver resolver);
}

/// <summary>
/// Makes the property get added by the DI engine.
/// </summary>
[System.AttributeUsage(System.AttributeTargets.Property)]
internal class DependencyInjectionPropertyAttribute : System.Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="DependencyInjectionPropertyAttribute"/> class.
/// </summary>
public DependencyInjectionPropertyAttribute()
{
}
}

/// <summary>
/// Makes this the constructor used by the DI engine.
/// </summary>
[System.AttributeUsage(System.AttributeTargets.Constructor)]
internal class DependencyInjectionConstructorAttribute : System.Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="DependencyInjectionConstructorAttribute"/> class.
/// </summary>
public DependencyInjectionConstructorAttribute()
{
}
}
}
Loading

0 comments on commit 3007f30

Please sign in to comment.