Skip to content

Commit 1e6b63e

Browse files
committed
Merge branch 'immitev-72-net20-support' into develop
* immitev-72-net20-support: Updated README with the latest supported .NET targets Added .NET 2.0 target
2 parents e9805e7 + 3fb02a2 commit 1e6b63e

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ LitJSON currently targets and supports
8282
* .NET Standard 2.0
8383
* .NET Standard 1.5
8484
* .NET Framework 4.5 and above
85+
* .NET Framework 4.0
86+
* .NET Framework 3.5 (including SQLCLR, for which [WCOMAB/SqlServerSlackAPI](https://github.com/WCOMAB/SqlServerSlackAPI) is an example of)
87+
* .NET Framework 2.0
8588
* Mono 4.4.2 and above
8689

87-
But the code is very portable and can even be compiled under SQLCLR, which [WCOMAB/SqlServerSlackAPI](https://github.com/WCOMAB/SqlServerSlackAPI) is an example of.
88-
8990
#### Prereleases
9091

9192
Each merge to develop is published to our NuGet feed on [MyGet](mygetgallery).

src/LitJson/LitJSON.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net45;netstandard1.5;net40;net35</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net45;netstandard1.5;net40;net35;net20</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -31,6 +31,11 @@ It's quick and lean, without external dependencies.</Description>
3131
<IncludeSource>true</IncludeSource>
3232
</PropertyGroup>
3333

34+
<PropertyGroup Condition="'$(TargetFramework)' == 'net20' ">
35+
<DefineConstants>$(DefineConstants);LEGACY</DefineConstants>
36+
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net20' and '$(OS)' == 'Windows_NT'">C:\Windows\Microsoft.NET\Framework\v2.0.50727</FrameworkPathOverride>
37+
</PropertyGroup>
38+
3439
<PropertyGroup Condition="'$(TargetFramework)' == 'net35' ">
3540
<DefineConstants>$(DefineConstants);LEGACY</DefineConstants>
3641
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35' and '$(OS)' == 'Windows_NT'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>

0 commit comments

Comments
 (0)