Skip to content
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

Allow .NET SDK versions to be provided with --platform-version argument #2236

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cormacpayne
Copy link
Contributor

Currently, only runtime versions can be provided to the --platform-version argument for oryx build, preventing users from specifying a specific version of the .NET SDK they'd like to build with (instead they'd need to know the corresponding runtime version shipped with the SDK version they want to use).

This PR cleans up the logic around the version that can be provided and detected to account for SDK versions, while still respecting the runtime version logic we currently have in place.

  • The purpose of this PR is explained in this message or in an issue. If an issue please include a reference as #<issue_number>.
  • Tests are included and/or updated for code changes.
    - [ ] Proper license headers are included in each file.

@cormacpayne cormacpayne requested a review from a team as a code owner November 1, 2023 17:50
@@ -435,24 +459,5 @@ private string GetRuntimeVersionUsingHierarchicalRules(string detectedVersion)
var defaultVersion = this.versionProvider.GetDefaultRuntimeVersion();
return defaultVersion;
}

private bool TryGetExplicitVersion(out string explicitVersion)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this one just never used?

@daniv-msft
Copy link
Contributor

@cormacpayne Overall looks good to me, but I would prefer not to push it before .NET 8 GA. Do you see any urgency in getting this one in?

william-msft
william-msft previously approved these changes Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants