-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #204 from tbolon/corefx
Migrate to .NET Core
- Loading branch information
Showing
116 changed files
with
870 additions
and
30,692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
--- | ||
language: csharp | ||
mono: | ||
- latest | ||
- 4.2.3 | ||
solution: src/DotLiquid.sln | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty # Ubuntu 14.04 | ||
sudo: required | ||
dotnet: 1.0.0-preview2-003121 | ||
mono: none | ||
env: DOTNETCORE=1 | ||
|
||
before_install: | ||
- sudo apt-get install nunit-console | ||
script: | ||
- xbuild /p:Configuration=Release src/DotLiquid.sln | ||
- nunit-console src/DotLiquid.Tests/bin/Release/DotLiquid.Tests.dll | ||
- dotnet restore | ||
- dotnet build src/DotLiquid/project.json --configuration Release --framework netstandard1.3 | ||
- dotnet build src/DotLiquid.Website/project.json --configuration Release --framework netcoreapp1.0 | ||
- dotnet build src/DotLiquid.Tests/project.json --configuration Release --framework netcoreapp1.0 | ||
- dotnet build src/DotLiquid.Website.Tests/project.json --configuration Release --framework netcoreapp1.0 | ||
- dotnet test src/DotLiquid.Tests --framework netcoreapp1.0 --where "cat != windows" | ||
- dotnet test src/DotLiquid.Website.Tests --framework netcoreapp1.0 --where "cat != windows" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Globalization; | ||
|
||
namespace DotLiquid | ||
{ | ||
internal static class CultureHelper | ||
{ | ||
public static IDisposable SetCulture(string name) | ||
{ | ||
var scope = new CultureScope(CultureInfo.CurrentCulture); | ||
|
||
#if CORE | ||
CultureInfo.CurrentCulture = new CultureInfo(name); | ||
#else | ||
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(name); | ||
#endif | ||
return scope; | ||
} | ||
|
||
private class CultureScope : IDisposable | ||
{ | ||
private readonly CultureInfo culture; | ||
|
||
public CultureScope(CultureInfo culture) | ||
{ | ||
this.culture = culture; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
#if CORE | ||
CultureInfo.CurrentCulture = this.culture; | ||
#else | ||
System.Threading.Thread.CurrentThread.CurrentCulture = this.culture; | ||
#endif | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.