Skip to content

Commit

Permalink
[c#] Merge initial .NET Standard 1.0 support
Browse files Browse the repository at this point in the history
* Use the .NET 4.5 build for inital targeting of .NET Standard 1.0
* Bond now depends on Newtonsoft.JSON 9.0.1

Closes #171
Closes #243
  • Loading branch information
chwarr committed Nov 8, 2016
2 parents 30b2c66 + 517d93c commit 2deb186
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 13 deletions.
12 changes: 12 additions & 0 deletions cs/nuget/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<!-- Required until the published Bond libraries have a Newtonsoft.Json dependency of v9.0.1 -->
<bindingRedirect oldVersion="7.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
9 changes: 9 additions & 0 deletions cs/nuget/bond.comm.runtime.csharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@
<file src="net45\Bond.Comm.Layers.dll" target="lib\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="net45\Bond.Comm.Layers.xml" target="lib\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="net45\Bond.Comm.Layers.pdb" target="lib\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="net45\Bond.Comm.Interfaces.dll" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Interfaces.xml" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Interfaces.pdb" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Service.dll" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Service.xml" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Service.pdb" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Layers.dll" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Layers.xml" target="lib\netstandard1.0" />
<file src="net45\Bond.Comm.Layers.pdb" target="lib\netstandard1.0" />
</files>
</package>
4 changes: 4 additions & 0 deletions cs/nuget/bond.compiler.csharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
<file src="cs\build\nuget\Bond.Compiler.CSharp.props" target="build\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="cs\build\nuget\Common.props" target="build\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="cs\build\nuget\Common.targets" target="build\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="cs\build\nuget\Bond.Compiler.CSharp.targets" target="build\netstandard1.0" />
<file src="cs\build\nuget\Bond.Compiler.CSharp.props" target="build\netstandard1.0" />
<file src="cs\build\nuget\Common.props" target="build\netstandard1.0" />
<file src="cs\build\nuget\Common.targets" target="build\netstandard1.0" />

<file src="cs\build\nuget\Bond.Compiler.CSharp.targets" target="build\net40" />
<file src="cs\build\nuget\Bond.Compiler.CSharp.props" target="build\net40" />
Expand Down
9 changes: 9 additions & 0 deletions cs/nuget/bond.core.csharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
<file src="net45\Bond.IO.dll" target="lib\net45" />
<file src="net45\Bond.IO.xml" target="lib\net45" />
<file src="net45\Bond.IO.pdb" target="lib\net45" />
<file src="net45\Bond.dll" target="lib\netstandard1.0" />
<file src="net45\Bond.xml" target="lib\netstandard1.0" />
<file src="net45\Bond.pdb" target="lib\netstandard1.0" />
<file src="net45\Bond.Attributes.dll" target="lib\netstandard1.0" />
<file src="net45\Bond.Attributes.xml" target="lib\netstandard1.0" />
<file src="net45\Bond.Attributes.pdb" target="lib\netstandard1.0" />
<file src="net45\Bond.Reflection.dll" target="lib\netstandard1.0" />
<file src="net45\Bond.Reflection.xml" target="lib\netstandard1.0" />
<file src="net45\Bond.Reflection.pdb" target="lib\netstandard1.0" />
<file src="net40\Bond.dll" target="lib\net40" />
<file src="net40\Bond.xml" target="lib\net40" />
<file src="net40\Bond.pdb" target="lib\net40" />
Expand Down
3 changes: 2 additions & 1 deletion cs/nuget/bond.csharp.test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\portable-net45+wp80+win8+wpa81+dnxcore50\Newtonsoft.Json.dll</HintPath>
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
Expand All @@ -121,6 +121,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
Expand Down
5 changes: 4 additions & 1 deletion cs/nuget/bond.runtime.csharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<copyright>Copyright (c) Microsoft</copyright>
<tags>Bond .NET C# serialization</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="7.0.1" />
<dependency id="Newtonsoft.Json" version="9.0.1" />
<dependency id="Bond.Core.CSharp" version ="[$version$]"/>
</dependencies>
</metadata>
Expand All @@ -34,6 +34,9 @@
<file src="net45\Bond.JSON.dll" target="lib\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="net45\Bond.JSON.xml" target="lib\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="net45\Bond.JSON.pdb" target="lib\portable-net45+wp80+win8+wpa81+dnxcore50" />
<file src="net45\Bond.JSON.dll" target="lib\netstandard1.0" />
<file src="net45\Bond.JSON.xml" target="lib\netstandard1.0" />
<file src="net45\Bond.JSON.pdb" target="lib\netstandard1.0" />
<file src="net40\Bond.JSON.dll" target="lib\net40" />
<file src="net40\Bond.JSON.xml" target="lib\net40" />
<file src="net40\Bond.JSON.pdb" target="lib\net40" />
Expand Down
2 changes: 1 addition & 1 deletion cs/nuget/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package id="Bond.Core.CSharp" version="5.0.0" targetFramework="net45" />
<package id="Bond.CSharp" version="5.0.0" targetFramework="net45" />
<package id="Bond.Runtime.CSharp" version="5.0.0" targetFramework="net45" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="portable-net45+wp80+win8+wpa81+dnxcore50" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="portable-net45+wp80+win8+wpa81" />
<package id="NUnit" version="2.6.4" targetFramework="portable-net45+wp80+win" />
<package id="NUnitTestAdapter" version="2.0.0" targetFramework="net45" />
</packages>
4 changes: 2 additions & 2 deletions cs/src/json/JSON.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
<HintPath>..\attributes\$(OutputPath)\Bond.Attributes.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json" Condition="'$(TargetFrameworkVersion)' == 'v4.5'">
<HintPath>..\..\packages\Newtonsoft.Json.7.0.1\lib\portable-net45+wp80+win8+wpa81+dnxcore50\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json" Condition="'$(TargetFrameworkVersion)' == 'v4.0'">
<HintPath>..\..\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion cs/src/json/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="portable-net45+wp80+win8+wpa81+dnxcore50" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="portable-net45+wp80+win8+wpa81" />
</packages>
4 changes: 2 additions & 2 deletions cs/test/comm/comm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@
<HintPath>..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json" Condition="'$(TargetFrameworkVersion)' == 'v4.5'">
<HintPath>..\..\packages\Newtonsoft.Json.7.0.1\lib\portable-net45+wp80+win8+wpa81+dnxcore50\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json" Condition="'$(TargetFrameworkVersion)' == 'v4.0'">
<HintPath>..\..\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion cs/test/comm/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="portable-net45+wp80+win8+wpa81+dnxcore50" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="portable-net45+wp80+win8+wpa81" />
<package id="NUnit" version="2.6.4" targetFramework="portable-net45+wp80+win" />
<package id="NUnitTestAdapter" version="2.0.0" targetFramework="net45" />
</packages>
4 changes: 2 additions & 2 deletions cs/test/core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
<HintPath>..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json" Condition="'$(TargetFrameworkVersion)' == 'v4.5'">
<HintPath>..\..\packages\Newtonsoft.Json.7.0.1\lib\portable-net45+wp80+win8+wpa81+dnxcore50\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json" Condition="'$(TargetFrameworkVersion)' == 'v4.0'">
<HintPath>..\..\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\packages\Newtonsoft.Json.9.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion cs/test/core/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="portable-net45+wp80+win8+wpa81+dnxcore50" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="portable-net45+wp80+win8+wpa81" />
<package id="NUnit" version="2.6.4" targetFramework="portable-net45+wp80+win" />
<package id="NUnitTestAdapter" version="2.0.0" targetFramework="net45" />
</packages>
2 changes: 1 addition & 1 deletion examples/cs/core/simple_json/simple_json.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<HintPath>$(BOND_BINARY_PATH)\net45\Bond.JSON.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\..\..\cs\packages\Newtonsoft.Json.7.0.1\lib\portable-net45+wp80+win8+wpa81+dnxcore50\Newtonsoft.Json.dll</HintPath>
<HintPath>..\..\..\..\cs\packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

0 comments on commit 2deb186

Please sign in to comment.