Update script to automatically take new preview pre-release builds#17375
Update script to automatically take new preview pre-release builds#17375daxian-dbw merged 3 commits intoPowerShell:masterfrom
Conversation
tools/UpdateDotnetRuntime.ps1
Outdated
| [string] $newSdk | ||
| ) | ||
|
|
||
| # -replace uses regex so we are splitting on "." |
There was a problem hiding this comment.
This comment doesn't make sense to me. Why should regex cause us to split on '.'?
| # -replace uses regex so we are splitting on "." | |
| # -replace uses regex so we are splitting on "." | |
| # Example SDK version: '7.0.100-preview.4' -> '7.0.1xx-preview4' |
There was a problem hiding this comment.
Updated comment to: # -replace uses regex so we are splitting on "." and not on "\.". "\" is escaped in the regex.
|
@PaulHigin - please re-review. I have addressed your comment |
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
🎉 Handy links: |
PR Summary
Use new feature in dotnet-install.ps1 to automatically update to latest available preview build.
Some things to note:
7.0.1xxas the nextChannel. This means it will look for the latest preview even if PS skips a preview.7.0.1xx-preview4. So, we construct that from the latest SDK found and update it.PR Context
Marking this a WIP till we snap for next preview.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).