Skip to content

Commit

Permalink
Merge branch 'immitev-72-net20-support' into develop
Browse files Browse the repository at this point in the history
* immitev-72-net20-support:
  Updated README with the latest supported .NET targets
  Added .NET 2.0 target
  • Loading branch information
devlead committed Jan 23, 2018
2 parents e9805e7 + 3fb02a2 commit 1e6b63e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -82,10 +82,11 @@ LitJSON currently targets and supports
* .NET Standard 2.0
* .NET Standard 1.5
* .NET Framework 4.5 and above
* .NET Framework 4.0
* .NET Framework 3.5 (including SQLCLR, for which [WCOMAB/SqlServerSlackAPI](https://github.com/WCOMAB/SqlServerSlackAPI) is an example of)
* .NET Framework 2.0
* Mono 4.4.2 and above

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.

#### Prereleases

Each merge to develop is published to our NuGet feed on [MyGet](mygetgallery).
Expand Down
7 changes: 6 additions & 1 deletion src/LitJson/LitJSON.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net45;netstandard1.5;net40;net35</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net45;netstandard1.5;net40;net35;net20</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -31,6 +31,11 @@ It's quick and lean, without external dependencies.</Description>
<IncludeSource>true</IncludeSource>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net20' ">
<DefineConstants>$(DefineConstants);LEGACY</DefineConstants>
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net20' and '$(OS)' == 'Windows_NT'">C:\Windows\Microsoft.NET\Framework\v2.0.50727</FrameworkPathOverride>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net35' ">
<DefineConstants>$(DefineConstants);LEGACY</DefineConstants>
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35' and '$(OS)' == 'Windows_NT'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
Expand Down

0 comments on commit 1e6b63e

Please sign in to comment.