Skip to content

Commit

Permalink
Merge pull request #25 from KuraiAndras/netstandard-2-support
Browse files Browse the repository at this point in the history
Change to .net standard 2.0
  • Loading branch information
morrisjdev authored Jun 7, 2020
2 parents a7d1acf + 8231458 commit c1697e5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ASPNETDemo/ASPNETDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="3.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion FileContextCore/Check.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static IReadOnlyList<T> HasNoNulls<T>(IReadOnlyList<T> value, [InvokerPar
}

[Conditional("DEBUG")]
public static void DebugAssert([System.Diagnostics.CodeAnalysis.DoesNotReturnIf(false)] bool condition, string message)
public static void DebugAssert(bool condition, string message)
{
if (!condition)
{
Expand Down
19 changes: 10 additions & 9 deletions FileContextCore/FileContextCore.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>8.0</LangVersion>
<SignAssembly Condition="'$(OS)' == 'Windows_NT'">true</SignAssembly>
<AssemblyOriginatorKeyFile>FileContextCoreCert.snk</AssemblyOriginatorKeyFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>3.3.0</Version>
<Version>3.4.0</Version>
<Company>morrisjdev</Company>
<Authors>morrisjdev</Authors>
<Description>File provider for Entity Framework Core (to be used for development purposes)</Description>
Expand All @@ -19,17 +20,17 @@
<PackageProjectUrl>https://github.com/morrisjdev/FileContextCore</PackageProjectUrl>
<NeutralLanguage>en-US</NeutralLanguage>
<DelaySign>false</DelaySign>
<AssemblyVersion>3.3.0.0</AssemblyVersion>
<FileVersion>3.3.0.0</FileVersion>
<AssemblyVersion>3.4.0.0</AssemblyVersion>
<FileVersion>3.4.0.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CsvHelper" Version="12.1.3" />
<PackageReference Include="EPPlus" Version="4.5.3.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="CsvHelper" Version="15.0.5" />
<PackageReference Include="EPPlus" Version="5.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.2" />
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions FileContextCore/Serializer/CSVSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text;
using FileContextCore.Infrastructure.Internal;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking.Internal;
using System.Globalization;

namespace FileContextCore.Serializer
{
Expand All @@ -34,7 +34,7 @@ public Dictionary<TKey, object[]> Deserialize<TKey>(string list, Dictionary<TKey
}

TextReader tr = new StringReader(list);
CsvReader reader = new CsvReader(tr);
CsvReader reader = new CsvReader(tr, CultureInfo.CurrentCulture);

reader.Read();
reader.ReadHeader();
Expand All @@ -61,7 +61,7 @@ public Dictionary<TKey, object[]> Deserialize<TKey>(string list, Dictionary<TKey
public string Serialize<TKey>(Dictionary<TKey, object[]> list)
{
StringWriter sw = new StringWriter();
CsvWriter writer = new CsvWriter(sw);
CsvWriter writer = new CsvWriter(sw, CultureInfo.CurrentCulture);

for (int i = 0; i < _propertyKeys.Length; i++)
{
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ Feel free to create a PR with your new provider and I'll add it to FileContextCo

| FileContext Version | EF Core Version |
|---------------------|-----------------|
| 3.4.* | 3.1.0 |
| 3.3.* | 3.0.0 |
| 3.2.* | 3.0.0 |
| 3.0.1/3.0.0/2.2.6 | 2.2.6 |
Expand Down

0 comments on commit c1697e5

Please sign in to comment.