-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP-40402: Move C# and Powershell SDK Generation to .NET Standard 2.0 / .NET 6.0 #4782
Merged
robhoes
merged 21 commits into
xapi-project:master
from
danilo-delbusso:private/danilod/sdk
Oct 10, 2022
Merged
CP-40402: Move C# and Powershell SDK Generation to .NET Standard 2.0 / .NET 6.0 #4782
robhoes
merged 21 commits into
xapi-project:master
from
danilo-delbusso:private/danilod/sdk
Oct 10, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
danilo-delbusso
changed the title
Move C# and Powershell SDK Generation to .NET Core
CP-40402: Move C# and Powershell SDK Generation to .NET Core
Sep 5, 2022
danilo-delbusso
changed the title
CP-40402: Move C# and Powershell SDK Generation to .NET Core
CP-40402: Move C# and Powershell SDK Generation to .NET Standard 2.0 / .NET 6.0
Sep 5, 2022
danilo-delbusso
force-pushed
the
private/danilod/sdk
branch
from
September 5, 2022 10:44
9af27cf
to
a2824ec
Compare
Also use Visual Studio IDE whitespace formatting Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Also convert C# `csproj` to SDK style Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Also update `.csproj` to use SDK style Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Also remove mention of XML RPC library Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
In .NET Core, the ValidateServerCertificate call runs in a separate thread. This causes an InvalidOperationException when calling ShouldContinue, which must be called within the same thread as ProcessRecord. Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
danilo-delbusso
force-pushed
the
private/danilod/sdk
branch
from
September 5, 2022 10:48
2b41cc3
to
e40bd1e
Compare
CitrixChris
approved these changes
Sep 7, 2022
danilo-delbusso
requested review from
CitrixChris
and removed request for
kc284
September 12, 2022 12:25
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
danilo-delbusso
force-pushed
the
private/danilod/sdk
branch
from
September 12, 2022 13:11
6c1f3d1
to
4bb64b2
Compare
kc284
requested changes
Sep 28, 2022
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Also remove semicolon incorrectly flagged as code comment, and minor whitespace issues. Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
kc284
reviewed
Oct 3, 2022
kc284
reviewed
Oct 3, 2022
kc284
reviewed
Oct 4, 2022
ocaml/sdk-gen/powershell/templates/XenServerPowerShell.csproj.mustache
Outdated
Show resolved
Hide resolved
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
danilo-delbusso
requested review from
kc284 and
CitrixChris
and removed request for
CitrixChris and
kc284
October 4, 2022 12:43
kc284
reviewed
Oct 4, 2022
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
danilo-delbusso
requested review from
kc284 and
CitrixChris
and removed request for
kc284
October 5, 2022 10:05
kc284
reviewed
Oct 5, 2022
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
danilo-delbusso
requested review from
kc284
and removed request for
CitrixChris
October 5, 2022 14:25
kc284
approved these changes
Oct 5, 2022
CitrixChris
approved these changes
Oct 10, 2022
robhoes
approved these changes
Oct 10, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't personally reviewed this, but several people who actually know about this code have approved.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Best reviewed one commit at a time.
If you want to run this and don't know how, feel free to ping me.
C# SDK(move to .NET Standard 2.0)
CookComputing.XmlRpc
IXmlRpcProxy
and otherXmlRpc
mentions fromProxy.cs
Event.cs
,Response.cs
, andProxy.cs
Event.cs
:XmlRpcMissingMapping
,XmlRpcMember
, calls tosession.XmlRpcProxy
Response.cs
:XmlRpcMissingMapping
csproj
to SDK stylenetstandard2.0
CookComputing.XmlRpcV2
incsproj
gen_csharp_binding.ml
:Maps.cs
code generationProxy.cs
code generationSession.cs
to only use JsonRpcREADME
XenSdkSample
Powershell SDK (Move to .NET 6.0):
The Powershell SDK must be moved to .NET Core to satisfy requirements.
.NET Core 6.0 is the latest available LTS.
n.b.: Visual Studio 2022 is required to build to .NET 6.0.
WinForms
inWait-XenTask.cs
ShouldContinue
does not run in a separate thread when called inConnect-Xenserver.cs
(in .NET Core, theValidateServerCertificate
call runs in a separate thread. This causes anInvalidOperationException
when callingShouldContinue
, which must be called within the same thread asProcessRecord
)csproj
to SDK stylenet6.0
CookComputing.XmlRpcV2
from references in project fileREADME
.psd1