Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 4793d68

Browse files
author
Konstantina Chremmou
committed
Merge pull request #7 from kc284/master
CA-111642: Removed the .snk key from the repository. Created a new one a...
2 parents 73c76be + 25c1d70 commit 4793d68

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

csharp/XenServer.NET.snk

-596 Bytes
Binary file not shown.

mk/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ $(MY_OBJ_DIR)/$(XMLRPC_DLL):
9292
$(MY_OBJ_DIR)/csharp_xmlrpc.tar.gz: $(REPO)/mk/sign.bat omake-phase $(MY_OBJ_DIR)/$(XMLRPC_DLL)
9393
mkdir -p $(CSHARP_XMLRPC_TMP)
9494
cp -r $(CSHARP_SRC_TMP) $(CSHARP_XMLRPC_TMP)
95-
sed -i '/SignAssembly/ i <AssemblyOriginatorKeyFile>XenServer.NET.snk</AssemblyOriginatorKeyFile>' $(CSHARP_XMLRPC_TMP)/XenServer.NET/XenServer.csproj
95+
sed -i '/SignAssembly/ i <AssemblyOriginatorKeyFile>xs.net.snk</AssemblyOriginatorKeyFile>' $(CSHARP_XMLRPC_TMP)/XenServer.NET/XenServer.csproj
9696
cp $< $(CSHARP_XMLRPC_TMP)
9797
cp $(MY_OBJ_DIR)/$(XMLRPC_DLL) $(CSHARP_XMLRPC_TMP)
98-
cp $(REPO)/csharp/XenServer.NET.snk $(CSHARP_XMLRPC_TMP)/XenServer.NET
9998
tar -C $(CSHARP_XMLRPC_TMP) -zcf $@ .
10099

101100
$(MY_OBJ_DIR)/XenServer.dll: $(MY_OBJ_DIR)/csharp_xmlrpc.tar.gz $(REPO)/mk/csharp.sh

mk/csharp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ FRAMEWORKDIR="${ROOT}/WINDOWS/Microsoft.NET/Framework/v3.5"
3434
MSBUILD="$FRAMEWORKDIR/MSBuild.exe"
3535
SDKDIR="${ROOT}/Program Files/Microsoft SDKs/Windows/v6.0A/bin"
3636
RESGEN="$SDKDIR/ResGen.exe"
37+
SNK="~/.ssh/xs.net.snk"
3738

3839
# see http://www.interact-sw.co.uk/iangblog/2005/09/12/cmdspawnerror
3940
SYSPATHS="${ROOT}/WINDOWS/:${ROOT}/WINDOWS/System32:${ROOT}/WINDOWS/System32/wbem"
4041

4142
#SKIP_SIGNING=yes
4243

4344
remote_cmd_passwd2 "cd ${TMPDIR}/XenServer.NET/ && \"${RESGEN}\" FriendlyErrorNames.resx /str:cs,XenAPI,FriendlyErrorNames,FriendlyErrorNames.Designer.cs /publicClass"
45+
remote_cmd_passwd2 "cp ${SNK} ${TMPDIR}/XenServer.NET"
4446
remote_cmd_passwd2 "cd ${TMPDIR}/XenServer.NET/ && ${MSBUILD} XenServer.csproj /t:Build /p:Configuration=Release"
4547
remote_cmd_passwd2 "cp ${TMPDIR}/XenServer.NET/bin/Release/XenServer.dll ${TMPDIR}"
4648
remote_cmd_passwd2 "cp ${TMPDIR}/XenServer.NET/FriendlyErrorNames.Designer.cs ${TMPDIR}"

powershell/src/CommonCmdletFunctions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ class CommonCmdletFunctions
4444
{
4545
private const string SessionsVariable = "global:Citrix.XenServer.Sessions";
4646
private const string DefaultSessionVariable = "global:XenServer_Default_Session";
47-
private static string CertificatePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),@"Citrix\XenServerPSSnapIn\XenServer_Known_Certificates.xml");
47+
private static string CertificatePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),@"WindowsPowerShell\XenServer_Known_Certificates.xml");
4848

4949
static CommonCmdletFunctions()
5050
{
51-
Session.UserAgent = string.Format("XenServerPSSnapIn/{0}", Assembly.GetExecutingAssembly().GetName().Version);
51+
Session.UserAgent = string.Format("XenServerPSModule/{0}", Assembly.GetExecutingAssembly().GetName().Version);
5252
}
5353

5454
internal static Dictionary<string, Session> GetAllSessions(PSCmdlet cmdlet)

0 commit comments

Comments
 (0)