Skip to content

Commit

Permalink
Merge pull request xapi-project#60 from GaborApatiNagy/CP-13394
Browse files Browse the repository at this point in the history
CP-13394: Build DotNetPackages & C# SDK with .NET 4.5
  • Loading branch information
GaborApatiNagy committed Nov 20, 2015
2 parents d13d064 + 6fffae5 commit 0778b9b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
11 changes: 8 additions & 3 deletions csharp/src/XenServer.csproj.header
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -12,9 +13,11 @@
<SignAssembly>true</SignAssembly>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -24,6 +27,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -32,9 +36,10 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="CookComputing.XmlRpcV2, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="CookComputing.XmlRpcV2.dll">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\CookComputing.XmlRpcV2.dll</HintPath>
</Reference>
Expand Down
4 changes: 0 additions & 4 deletions mk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ omake-phase:
cd $(REPO) && $(OMAKE) dist

$(MY_OBJ_DIR)/$(XMLRPC_DLL):
ifeq ($(wildcard $(PROJECT_OUTPUTDIR)/dotnet-packages-ref/CookComputing.XmlRpcV2_dotnet2.dll),)
cp $(PROJECT_OUTPUTDIR)/dotnet-packages-ref/CookComputing.XmlRpcV2.dll $@
else
cp $(PROJECT_OUTPUTDIR)/dotnet-packages-ref/CookComputing.XmlRpcV2_dotnet2.dll $@
endif

$(MY_OBJ_DIR)/csharp_xmlrpc.tar.gz: $(REPO)/mk/sign.bat omake-phase $(MY_OBJ_DIR)/$(XMLRPC_DLL)
mkdir -p $(CSHARP_XMLRPC_TMP)
Expand Down
4 changes: 2 additions & 2 deletions mk/csharp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@

set -e

FRAMEWORKDIR="${ROOT}/WINDOWS/Microsoft.NET/Framework/v3.5"
FRAMEWORKDIR="${ROOT}/WINDOWS/Microsoft.NET/Framework/v4.0.30319"
MSBUILD="$FRAMEWORKDIR/MSBuild.exe"
SDKDIR="${ROOT}/Program Files/Microsoft SDKs/Windows/v6.0A/bin"
SDKDIR="${ROOT}/Program Files (x86)/Microsoft SDKs/Windows/v8.0A/bin/NETFX 4.0 Tools"
RESGEN="$SDKDIR/ResGen.exe"
SNK="~/.ssh/xs.net.snk"

Expand Down
2 changes: 1 addition & 1 deletion mk/powershell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

set -e

FRAMEWORKDIR="${ROOT}/WINDOWS/Microsoft.NET/Framework/v3.5"
FRAMEWORKDIR="${ROOT}/WINDOWS/Microsoft.NET/Framework/v4.0.30319"
CSC="$FRAMEWORKDIR/csc.exe"
# see http://www.interact-sw.co.uk/iangblog/2005/09/12/cmdspawnerror
SYSPATHS="${ROOT}/WINDOWS/:${ROOT}/WINDOWS/System32:${ROOT}/WINDOWS/System32/wbem"
Expand Down
2 changes: 1 addition & 1 deletion mk/sign-ps.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ rem OF THE POSSIBILITY OF SUCH DAMAGE.
@echo on
if not exist C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe goto done

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "$c = Get-ChildItem \"cert:\\CurrentUser\\My\" | where { $_.Subject -like \"*Citrix Systems, Inc*\" } ; Set-AuthenticodeSignature -cert $c %1" <NUL
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "$c = Get-ChildItem -Path cert:\CurrentUser\My, cert:\\LocalMachine\My | where { $_.Subject -like "*Citrix Systems, Inc*" }; Set-AuthenticodeSignature -cert $c %1" <NUL

:done
6 changes: 3 additions & 3 deletions powershell/XenServerPSModule.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ CompanyName = 'Citrix Systems, Inc'
Copyright = 'Copyright (c) Citrix Systems, Inc. All rights reserved.'

# Requirements
PowerShellVersion = '2.0'
PowerShellVersion = '4.0'
PowerShellHostName = ''
PowerShellHostVersion = ''
DotNetFrameworkVersion = '3.5'
CLRVersion = '2.0'
DotNetFrameworkVersion = '4.5'
CLRVersion = '4.0.30319'
ProcessorArchitecture = 'None'

#Contents
Expand Down
1 change: 1 addition & 0 deletions powershell/src/Connect-XenServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ protected override void ProcessRecord()
}

ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateServerCertificate);
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

if (Url == null || Url.Length == 0)
{
Expand Down

0 comments on commit 0778b9b

Please # to comment.