Skip to content

Commit 50dd038

Browse files
committed
Moved to .netstandard 2.1, .net 472, fixed issue with FrameworkModule
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).
1 parent 58d1172 commit 50dd038

File tree

13 files changed

+21
-19
lines changed

13 files changed

+21
-19
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 3.5.{build}
1+
version: 3.6.{build}
22
branches:
33
only:
44
- master

src/EcsRx.Examples/EcsRx.Examples.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<LangVersion>7.3</LangVersion>
77
</PropertyGroup>

src/EcsRx.Infrastructure.Ninject/EcsRx.Infrastructure.Ninject.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Version>0.0.0</Version>
5-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
66
<Title>EcsRx.Infrastructure.Ninject</Title>
77
<Authors>Grofit (LP)</Authors>
88
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

src/EcsRx.Infrastructure/EcsRx.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Version>0.0.0</Version>
4-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
55
<Title>EcsRx.Infrastructure</Title>
66
<Authors>Grofit (LP)</Authors>
77
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

src/EcsRx.Infrastructure/Modules/FrameworkModule.cs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@ public void Setup(IDependencyContainer container)
3232
container.Bind<IConventionalSystemHandler, ManualSystemHandler>();
3333
container.Bind<ISystemExecutor, SystemExecutor>();
3434
container.Bind<IObservableScheduler, DefaultObservableScheduler>();
35-
36-
var componentTypeAssigner = new DefaultComponentTypeAssigner();
37-
var allComponents = componentTypeAssigner.GenerateComponentLookups();
38-
var componentLookup = new ComponentTypeLookup(allComponents);
39-
40-
container.Bind<IComponentTypeAssigner>(new BindingConfiguration{ToInstance = componentTypeAssigner});
41-
container.Bind<IComponentTypeLookup>(new BindingConfiguration{ToInstance = componentLookup});
35+
container.Bind<IComponentTypeAssigner, DefaultComponentTypeAssigner>();
36+
container.Bind<IComponentTypeLookup>(new BindingConfiguration{ToMethod = CreateDefaultTypeLookup});
4237
container.Bind<IComponentDatabase, ComponentDatabase>();
4338
}
39+
40+
private object CreateDefaultTypeLookup(IDependencyContainer container)
41+
{
42+
var componentTypeAssigner = container.Resolve<IComponentTypeAssigner>();
43+
var allComponents = componentTypeAssigner.GenerateComponentLookups();
44+
return new ComponentTypeLookup(allComponents);
45+
}
4446
}
4547
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Version>0.0.0</Version>
4-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
55
</PropertyGroup>
66
</Project>

src/EcsRx.Plugins.Batching/EcsRx.Plugins.Batching.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Version>0.0.0</Version>
5-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
66
<Title>EcsRx.Plugins.Batching</Title>
77
<Authors>Grofit (LP)</Authors>
88
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

src/EcsRx.Plugins.Computeds/EcsRx.Plugins.Computeds.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Version>0.0.0</Version>
5-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
66
<Title>EcsRx.Plugins.Computeds</Title>
77
<Authors>Grofit (LP)</Authors>
88
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

src/EcsRx.Plugins.ReactiveSystems/EcsRx.Plugins.ReactiveSystems.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Version>0.0.0</Version>
5-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
66
<Title>EcsRx.Plugins.ReactiveSystems</Title>
77
<Authors>Grofit (LP)</Authors>
88
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

src/EcsRx.Plugins.Views/EcsRx.Plugins.Views.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Version>0.0.0</Version>
5-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
66
<Title>EcsRx.Plugins.Views</Title>
77
<Authors>Grofit (LP)</Authors>
88
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

src/EcsRx.ReactiveData/EcsRx.ReactiveData.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Version>0.0.0</Version>
5-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
66
<Title>EcsRx.ReactiveData</Title>
77
<Authors>Grofit (LP)</Authors>
88
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

src/EcsRx.Tests/EcsRx.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp2.0</TargetFramework>
3+
<TargetFramework>netcoreapp3.1</TargetFramework>
44
<IsPackable>false</IsPackable>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
</PropertyGroup>

src/EcsRx/EcsRx.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Version>0.0.0</Version>
4-
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net472</TargetFrameworks>
55
<Title>EcsRx</Title>
66
<Authors>Grofit (LP)</Authors>
77
<PackageLicenseUrl>https://github.com/ecsrx/ecsrx/blob/master/LICENSE</PackageLicenseUrl>

0 commit comments

Comments
 (0)