Skip to content

Commit

Permalink
Moved to .netstandard 2.1, .net 472, fixed issue with FrameworkModule
Browse files Browse the repository at this point in the history
An issue was reported where not all components from plugins were being loaded ahead of time, this has been fixed so component lookups by default will be generated at the last possible point in time (when the executor is created).
  • Loading branch information
grofit committed Mar 3, 2020
1 parent 58d1172 commit 50dd038
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 3.5.{build}
version: 3.6.{build}
branches:
only:
- master
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx.Examples/EcsRx.Examples.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx.Infrastructure.Ninject</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx.Infrastructure/EcsRx.Infrastructure.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx.Infrastructure</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down
16 changes: 9 additions & 7 deletions src/EcsRx.Infrastructure/Modules/FrameworkModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ public void Setup(IDependencyContainer container)
container.Bind<IConventionalSystemHandler, ManualSystemHandler>();
container.Bind<ISystemExecutor, SystemExecutor>();
container.Bind<IObservableScheduler, DefaultObservableScheduler>();

var componentTypeAssigner = new DefaultComponentTypeAssigner();
var allComponents = componentTypeAssigner.GenerateComponentLookups();
var componentLookup = new ComponentTypeLookup(allComponents);

container.Bind<IComponentTypeAssigner>(new BindingConfiguration{ToInstance = componentTypeAssigner});
container.Bind<IComponentTypeLookup>(new BindingConfiguration{ToInstance = componentLookup});
container.Bind<IComponentTypeAssigner, DefaultComponentTypeAssigner>();
container.Bind<IComponentTypeLookup>(new BindingConfiguration{ToMethod = CreateDefaultTypeLookup});
container.Bind<IComponentDatabase, ComponentDatabase>();
}

private object CreateDefaultTypeLookup(IDependencyContainer container)
{
var componentTypeAssigner = container.Resolve<IComponentTypeAssigner>();
var allComponents = componentTypeAssigner.GenerateComponentLookups();
return new ComponentTypeLookup(allComponents);
}
}
}
2 changes: 1 addition & 1 deletion src/EcsRx.MicroRx/EcsRx.MicroRx.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/EcsRx.Plugins.Batching/EcsRx.Plugins.Batching.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx.Plugins.Batching</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx.Plugins.Computeds/EcsRx.Plugins.Computeds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx.Plugins.Computeds</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx.Plugins.ReactiveSystems</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx.Plugins.Views/EcsRx.Plugins.Views.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx.Plugins.Views</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx.ReactiveData/EcsRx.ReactiveData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx.ReactiveData</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx.Tests/EcsRx.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IsPackable>false</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/EcsRx/EcsRx.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>0.0.0</Version>
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
<Title>EcsRx</Title>
<Authors>Grofit (LP)</Authors>
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>
Expand Down

0 comments on commit 50dd038

Please sign in to comment.