Skip to content

Commit df1cfce

Browse files
committed
Version 1.0.2
• Add support for .NET Framework 4 and .NET Standard 2.0! • Fix some formatting in the project file • Update readme text
1 parent d119d6b commit df1cfce

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Very fast, conformant, and polymorphic JSON5 serializer.
44

5-
| Package Name | Release (NuGet) | Nightly (NuGet) |
5+
| Package Name | Release (NuGet) | Preview (NuGet) |
66
|--------------------------------|-----------------|-----------------|
77
| `fastJSON5` | [![NuGet](https://img.shields.io/nuget/v/fastJSON5.svg)](https://www.nuget.org/packages/fastJSON5/latest) | [![NuGet](https://img.shields.io/nuget/vpre/fastJSON5.svg)](https://www.nuget.org/packages/fastJSON5/absoluteLatest) |
88

fastJSON.nuspec

+11-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
44
<metadata>
55
<id>fastJSON5</id>
6-
<version>1.0.1</version>
6+
<version>1.0.2</version>
77
<title>fastJSON5</title>
88
<authors>hamarb123, mgholam</authors>
99
<owners />
@@ -12,8 +12,18 @@
1212
<license type="file">LICENSE</license>
1313
<description>Very fast, conformant, and polymorphic JSON5 serializer. This build is based on mgholam/fastJSON 2.4.0.3.</description>
1414
<copyright>mgholam © 2010-2021, hamarb123 © 2020-2021</copyright>
15+
<dependencies>
16+
<group targetFramework="netstandard2.0">
17+
<dependency id="System.Reflection.Emit.Lightweight" version="4.3.0" />
18+
</group>
19+
</dependencies>
1520
</metadata>
1621
<files>
22+
<file src="output\net4\fastJSON5.dll" target="lib\net4\fastJSON5.dll" />
23+
<file src="output\net4\fastJSON5.xml" target="lib\net4\fastJSON5.xml" />
24+
<file src="output\netstandard2.0\fastJSON5.dll" target="lib\netstandard2.0\fastJSON5.dll" />
25+
<file src="output\netstandard2.0\fastJSON5.deps.json" target="lib\netstandard2.0\fastJSON5.deps.json" />
26+
<file src="output\netstandard2.0\fastJSON5.xml" target="lib\netstandard2.0\fastJSON5.xml" />
1727
<file src="output\netstandard2.1\fastJSON5.dll" target="lib\netstandard2.1\fastJSON5.dll" />
1828
<file src="output\netstandard2.1\fastJSON5.deps.json" target="lib\netstandard2.1\fastJSON5.deps.json" />
1929
<file src="output\netstandard2.1\fastJSON5.xml" target="lib\netstandard2.1\fastJSON5.xml" />

fastJSONcore/fastJSON.csproj

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
33

44
<PropertyGroup>
5-
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
5+
<TargetFrameworks>net4;netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
66
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
77
<Authors>Hamish Arblaster, M. Gholam</Authors>
88
<PackageProjectUrl>https://github.com/hamarb123/fastJSON5</PackageProjectUrl>
@@ -11,20 +11,20 @@
1111
<Product>fastJSON5</Product>
1212
<Copyright>mgholam © 2010-2021, hamarb123 © 2020-2021</Copyright>
1313
<Company>hamarb123, mgholam</Company>
14-
<Version>1.0.1-2.4.0.3</Version>
14+
<Version>1.0.2-2.4.0.3</Version>
1515
<AssemblyName>fastJSON5</AssemblyName>
1616
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
1717
<LangVersion>9</LangVersion>
1818
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1919
<NoWarn>$(NoWarn);1591;1573</NoWarn>
2020
</PropertyGroup>
2121
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
22-
<DefineConstants>TRACE;DEBUG;NETSTANDARD2_0; NET4;</DefineConstants>
22+
<DefineConstants>TRACE;DEBUG;NETSTANDARD2_0;NET4;</DefineConstants>
2323
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2424
<Optimize>false</Optimize>
2525
</PropertyGroup>
2626
<PropertyGroup Condition="'$(Configuration)'=='Release'">
27-
<DefineConstants>NETSTANDARD2_0; NET4;</DefineConstants>
27+
<DefineConstants>NETSTANDARD2_0;NET4;</DefineConstants>
2828
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2929
<Optimize>true</Optimize>
3030
</PropertyGroup>
@@ -39,6 +39,11 @@
3939
<Compile Include="..\fastJSON\Reflection.cs" Link="Reflection.cs" />
4040
<Compile Include="..\fastJSON\SafeDictionary.cs" Link="SafeDictionary.cs" />
4141
</ItemGroup>
42+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
43+
<PackageReference Include="System.Reflection.Emit.Lightweight">
44+
<Version>4.3.0</Version>
45+
</PackageReference>
46+
</ItemGroup>
4247

4348
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
4449
</Project>

0 commit comments

Comments
 (0)