Skip to content

Commit 3366aa9

Browse files
committed
Added back net451 and net46 target frameworks
1 parent 5232ee9 commit 3366aa9

File tree

6 files changed

+1678
-13
lines changed

6 files changed

+1678
-13
lines changed

sample/RecurrentTasks.Sample/project.lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3615,7 +3615,7 @@
36153615
"lib/netstandard1.3/System.Xml.XPath.XDocument.dll": {}
36163616
}
36173617
},
3618-
"RecurrentTasks/2.3.0": {
3618+
"RecurrentTasks/2.4.0": {
36193619
"type": "project",
36203620
"framework": ".NETStandard,Version=v1.3",
36213621
"dependencies": {
@@ -9599,7 +9599,7 @@
95999599
"ref/xamarinwatchos10/_._"
96009600
]
96019601
},
9602-
"RecurrentTasks/2.3.0": {
9602+
"RecurrentTasks/2.4.0": {
96039603
"type": "project",
96049604
"path": "../../src/RecurrentTasks/project.json",
96059605
"msbuildProject": "../../src/RecurrentTasks/RecurrentTasks.xproj"

src/RecurrentTasks/TaskBase.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,13 @@ protected void MainLoop(TimeSpan initialTimeout)
113113
if (RunningCulture != null)
114114
{
115115
Logger.LogDebug("Switching to {0} CultureInfo...", RunningCulture.Name);
116+
#if NET451
117+
Thread.CurrentThread.CurrentCulture = RunningCulture;
118+
Thread.CurrentThread.CurrentUICulture = RunningCulture;
119+
#else
116120
CultureInfo.CurrentCulture = RunningCulture;
117121
CultureInfo.CurrentUICulture = RunningCulture;
122+
#endif
118123
}
119124

120125
try

src/RecurrentTasks/project.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"version": "2.4.0",
2+
"version": "2.4.1",
33
"title": "RecurrentTasks",
44
"copyright": "Dmitry Popov, 2016",
55
"packOptions": {
66
"summary": "RecurrentTasks for .NET allows you to run simple recurrent background tasks with specific intervals, without complex frameworks, persistance, etc...",
77
"tags": [ "task", "job", "recurrent", "recurring", "aspnetcore" ],
88
"owners": [ "Dmitry Popov" ],
9-
"releaseNotes": "AfterRunFail event added to ITask",
9+
"releaseNotes": "Added back net45 and net461 target frameworks",
1010
"licenseUrl": "https://github.com/justdmitry/RecurrentTasks/blob/master/LICENSE",
1111
"projectUrl": "https://github.com/justdmitry/RecurrentTasks",
1212
"repository": {
@@ -16,10 +16,23 @@
1616
},
1717
"dependencies": {
1818
"Microsoft.Extensions.Logging.Abstractions": "1.0.0",
19-
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
20-
"System.Threading": "4.0.11"
19+
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0"
2120
},
2221
"frameworks": {
23-
"netstandard1.3": {}
22+
"net451": {
23+
"frameworkAssemblies": {
24+
"System.Runtime": "4.0.10.0"
25+
}
26+
},
27+
"net46": {
28+
"frameworkAssemblies": {
29+
"System.Runtime": "4.0.20.0"
30+
}
31+
},
32+
"netstandard1.3": {
33+
"dependencies": {
34+
"System.Threading": "4.0.11"
35+
}
36+
}
2437
}
2538
}

0 commit comments

Comments
 (0)