Skip to content

Commit

Permalink
CP-31132: Renamed the Json.NET assembly to avoid clashes when the ori…
Browse files Browse the repository at this point in the history
…ginal unpatched dll exists.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
  • Loading branch information
kc284 authored and MihaelaStoica committed Apr 24, 2019
1 parent ba6b6ec commit 81757c4
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 36 deletions.
10 changes: 5 additions & 5 deletions c/README.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ To network with other developers using Citrix Hypervisor visit
https://discussions.citrix.com/forum/101-hypervisor-formerly-xenserver/

libxenserver is free software. You can redistribute and modify it under the
terms of the BSD license. See COPYING for details.
terms of the BSD 2-Clause license. See COPYING for details.

This library is accompanied by a number of test programs that can be used as
pedagogical examples. These do not form part of this library, and are licensed
for redistribution and modification under the BSD license. libxenserver comes
with the usual complexities inherent with programming in C, and it is recommended
that you study these examples carefully to understand the approach to error
reporting and memory management taken by this library.
for redistribution and modification under the BSD 2-Clause license. libxenserver
comes with the usual complexities inherent with programming in C, and it is
recommended that you study these examples carefully to understand the approach
to error reporting and memory management taken by this library.


Dependencies
Expand Down
30 changes: 16 additions & 14 deletions csharp/README.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ XenServer.NET is a complete SDK for Citrix Hypervisor, exposing the Citrix
Hypervisor API as .NET classes. It is written in C#.

It is available in the CitrixHypervisor-SDK-@SDK_VERSION@.zip, which can be downloaded
from see https://www.citrix.com/downloads/citrix-hypervisor/
from https://www.citrix.com/downloads/citrix-hypervisor/

For Citrix Hypervisor documentation, see https://docs.citrix.com/en-us/citrix-hypervisor/

Expand All @@ -23,11 +23,11 @@ To network with other developers using Citrix Hypervisor visit
https://discussions.citrix.com/forum/101-hypervisor-formerly-xenserver/

XenServer.NET is free software. You can redistribute and modify it under the
terms of the BSD license. See LICENSE.txt for details.
terms of the BSD 2-Clause license. See LICENSE.txt for details.

This library is accompanied by pedagogical examples. These do not form
part of this library, and are licensed for redistribution and modification
under the BSD license.
under the BSD 2-Clause license.


Prerequisites
Expand All @@ -43,12 +43,13 @@ XenServer.NET is dependent upon the following libraries:

- XML-RPC.NET by Charles Cook (see http://xml-rpc.net).
XML-RPC.NET is licensed under the MIT X11 license; see
LICENSE.CookComputing.XmlRpcV2.txt for details. The library
LICENSE.CookComputing.XmlRpcV2.txt for details. A patched version of the library
(CookComputing.XmlRpcV2.dll) is shipped with XenServer.NET.

- Newtonsoft JSON.NET by James Newton-King (see https://www.newtonsoft.com/).
JSON.NET is licensed under the MIT license; see LICENSE.Newtonsoft.Json.txt
for details. The library (Newtonsoft.Json.dll) is shipped with XenServer.NET.
for details. A patched version of the library (Newtonsoft.Json.CH.dll) is
shipped with XenServer.NET.


Downloads
Expand All @@ -67,22 +68,23 @@ Getting Started
Download and unzip the CitrixHypervisor-SDK-@SDK_VERSION@.zip.

A. To use the compiled binaries in your code:
1. Copy both XenServer.dll and CookComputing.XmlRpcV2.dll from the bin folder
into your own workspace.
2. In Visual Studio, add references to both DLLs from your own program.
Project > Add Reference > Browse.
3. You should now be ready to compile against XenServer.NET.
1. Copy XenServer.dll, CookComputing.XmlRpcV2.dll and Newtonsoft.Json.CH.dll
from the bin folder into your own workspace.
2. In Visual Studio, add references to all DLLs from your own program.
Project > Add Reference > Browse.
3. You should now be ready to compile against XenServer.NET.

B. To build the source code:
1. Copy CookComputing.XmlRpcV2.dll from the bin folder into the source code
folder at the same level as the XenServer.csproj file.
1. Copy CookComputing.XmlRpcV2.dll and Newtonsoft.Json.CH.dll from the bin
folder into the source code folder at the same level as the project file
XenServer.csproj
2. Open the project XenServer.csproj in Visual Studio.
3. You should now be ready to build the source code.

C. To run the examples:
1. Copy XenServer.dll, CookComputing.XmlRpcV2.dll, and Newtonsoft.Json.dll
1. Copy XenServer.dll, CookComputing.XmlRpcV2.dll and Newtonsoft.Json.CH.dll
from the bin folder into the samples folder at the same level as the
XenSdkSample.csproj file.
project file XenSdkSample.csproj.
2. Open XenSdkSample.sln inside Visual Studio (2013 or greater).
3. You should now be ready to compile the solution and run the examples.
The solution project is a console application expecting the parameters
Expand Down
4 changes: 2 additions & 2 deletions csharp/autogen/samples/XenSdkSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>.\CookComputing.XmlRpcV2.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<Reference Include="Newtonsoft.Json.CH">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\Newtonsoft.Json.dll</HintPath>
<HintPath>.\Newtonsoft.Json.CH.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
4 changes: 2 additions & 2 deletions csharp/templates/XenServer.csproj.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>.\CookComputing.XmlRpcV2.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json.dll">
<Reference Include="Newtonsoft.Json.CH.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\Newtonsoft.Json.dll</HintPath>
<HintPath>.\Newtonsoft.Json.CH.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down
4 changes: 2 additions & 2 deletions java/README.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ To network with other developers using Citrix Hypervisor visit
https://discussions.citrix.com/forum/101-hypervisor-formerly-xenserver/

XenServerJava is free software. You can redistribute and modify it under the
terms of the BSD license. See LICENSE.txt for details.
terms of the BSD 2-Clause license. See LICENSE.txt for details.

This library is accompanied a number of test programs that can be used ass
pedagogical examples. These do not form part of this library, and are licensed for
redistribution and modification under the BSD license.
redistribution and modification under the BSD 2-Clause license.


Dependencies
Expand Down
14 changes: 7 additions & 7 deletions powershell/README.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ To network with other developers using Citrix Hypervisor visit
https://discussions.citrix.com/forum/101-hypervisor-formerly-xenserver/

This module is free software. You can redistribute and modify it under the
terms of the BSD license. See LICENSE.txt for details.
terms of the BSD 2-Clause license. See LICENSE.txt for details.

This library is accompanied by pedagogical examples. These do not form
part of this library, and are licensed for redistribution and modification
under the BSD license.
under the BSD 2-Clause license.


Prerequisites
Expand All @@ -43,14 +43,14 @@ The Citrix Hypervisor PowerShell Module is dependent upon the following librarie

- XML-RPC.NET by Charles Cook (see http://xml-rpc.net).
XML-RPC.NET is licensed under the MIT X11 license; see
LICENSE.CookComputing.XmlRpcV2.txt for details. The library
LICENSE.CookComputing.XmlRpcV2.txt for details. A patched version of the library
(CookComputing.XmlRpcV2.dll) is shipped with the Citrix Hypervisor PowerShell
Module.

- Newtonsoft JSON.NET by James Newton-King (see https://www.newtonsoft.com/).
JSON.NET is licensed under the MIT license; see LICENSE.Newtonsoft.Json.txt
for details. The library (Newtonsoft.Json.dll) is shipped with the Citrix
Hypervisor PowerShell Module.
for details. A patched version of the library (Newtonsoft.Json.CH.dll) is
shipped with the Citrix Hypervisor PowerShell Module.


Folder Structure
Expand Down Expand Up @@ -142,9 +142,9 @@ Getting Started
Building and Debugging the Source Code
--------------------------------------

1. Copy CookComputing.XmlRpcV2.dll, Newtonsoft.Json.dll, and XenServer.dll from
1. Copy CookComputing.XmlRpcV2.dll, Newtonsoft.Json.CH.dll, and XenServer.dll from
the XenServerPSModule folder into the source code folder at the same level as
the XenServerPowerShell.csproj file.
the project file XenServerPowerShell.csproj.

2. Open the project XenServerPowerShell.csproj in Visual Studio (2013 or greater).

Expand Down
4 changes: 2 additions & 2 deletions powershell/XenServerPSModule.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ RequiredModules = @()
NestedModules = @()
ModuleList = @('XenServerPowerShell.dll')
RequiredAssemblies = @('CookComputing.XmlRpcV2.dll',
'Newtonsoft.Json.dll',
'Newtonsoft.Json.CH.dll',
'XenServer.dll')
ScriptsToProcess = @('Initialize-Environment.ps1')
TypesToProcess = @('XenServer.types.ps1xml')
FormatsToProcess = @('XenServer.format.ps1xml')
FileList = @('about_XenServer.help.txt',
'CookComputing.XmlRpcV2.dll',
'Newtonsoft.Json.dll',
'Newtonsoft.Json.CH.dll',
'Initialize-Environment.ps1',
'LICENSE.CookComputing.XmlRpcV2.txt',
'LICENSE.Newtonsoft.Json.txt',
Expand Down
4 changes: 2 additions & 2 deletions powershell/templates/XenServerPowerShell.csproj.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>.\CookComputing.XmlRpcV2.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json.dll">
<Reference Include="Newtonsoft.Json.CH.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\Newtonsoft.Json.dll</HintPath>
<HintPath>.\Newtonsoft.Json.CH.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Expand Down

0 comments on commit 81757c4

Please sign in to comment.