-
Notifications
You must be signed in to change notification settings - Fork 305
Removed NETSTANDARD2_0 IFDefs and added Brackets #451
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
Conversation
… me build if I didn't fix them
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: KyleJFischer The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Welcome @KyleJFischer! |
@k8s-ci-robot /check-cla |
/retest |
@KyleJFischer: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/check-cla |
/assign @krabhishek8260 |
…it is compatiable with 4.5.2
Sorry about all the extra commits, first time contributing. Let me know if there is anything else you need me to change! |
@@ -411,7 +407,6 @@ public static string RenewAzureToken(string tenantId, string clientId, string ap | |||
throw new KubeConfigException("Refresh not supported."); | |||
} | |||
|
|||
#if NETSTANDARD2_0 |
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.
Not sure what impact this will have in terms for backwards compatibility.
Will this cause any harm if this block of code runs for non .Net core clients?
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'll try running some more testing on this in a bit. If others could test different setups as well, that would probably be the most ideal.
At the time I had several problems with these tests that required the preprocessor directives, not quite sure what will be the impact of removing these but it seems that build passes. @tg123 you mentioned before that you're working on migrating the codebase to .netstandard2.0, how's that going? anything we can help with? btw, not sure it has something to do with this specific pull request but @KyleJFischer please bare in mind the following issue: #396 (although I haven't suffered from the problems mentioned in there) |
if (config.EnvironmentVariables != null) | ||
{ | ||
foreach (var configEnvironmentVariableKey in config.EnvironmentVariables.Keys) | ||
{ | ||
process.StartInfo.Environment.Add(key: configEnvironmentVariableKey, | ||
process.StartInfo.EnvironmentVariables.Add(key: configEnvironmentVariableKey, |
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 checked the doc
EnvironmentVariables === Environment
just curious why this was changed
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.
If you are asking why I changed it, I had read above the target .net framework for this client was 4.5.2 which unfortunately doesn't have the Environment. However, EnvironmentVariables does exist in 4.5.2 and is in the latest preview of .net 5. Source
If you are asking why it changed in general, well, I can't help you there :)
Hopefully that clears up any confusion.
/LGTM already moved to netstandard2 |
Is there anything else specific this PR is waiting on? I'd really appreciate if it can be merged please. |
/approve |
Removed NETSTANDARD2_) IfDefs to allow later versions of .net to be able to use the external execution feature.
Also added { because it won't let me build if I didn't fix them. Can remove them if we want it the old way.