-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Don't hardcode the path to v141 platform toolset #3434
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
eb05ae5
Don't hardcode the path to v141 platform toolset
5259e65
fix linting
e8526ce
Change files
b842623
Support 2017/2019 installs and side-by-side installs
c3fa729
eslint
e59d5bf
pass verbose to msbuildtools functions
36e4570
require v141 tools but not UWP since that doesn't seem necessary
4d0205d
print out VS component list
f9cd558
bump
c3d1218
bump
75568e1
dump
02e7472
bump
0028d0e
bump
a03bba6
bump
456dc75
bump
3f50304
bump
91c83a0
bump
0ee6a70
bump
f92ffce
bump
aa97611
bump
6ebc102
bump
8bfe689
bump
fd46b52
bump
9221747
run shell instead of installer
35449a4
bump
d283956
install UWP v141 in the lab
1d1541d
per-arch v141 package stuff
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| $dir = $env:temp | ||
| if ($env:Agent_TempDirectory -ne $null) | ||
| { | ||
| $dir = $env:Agent_TempDirectory | ||
| } | ||
|
|
||
| $installerPath = 'C:\Program Files (x86)\Microsoft Visual Studio\Installer\' | ||
| $installationPath = . $installerPath\vswhere.exe -latest -property installationPath | ||
| $vsconfig = "$dir\vsconfig" | ||
| Write-Host "VSConfig will be at $vsconfig" | ||
|
|
||
| Invoke-WebRequest -Uri 'https://download.visualstudio.microsoft.com/download/pr/c4fef23e-cc45-4836-9544-70e213134bc8/1ee5717e9a1e05015756dff77eb27d554a79a6db91f2716d836df368381af9a1/vs_Enterprise.exe' -OutFile $dir\vs_enterprise.exe | ||
| $p = Start-Process -PassThru $dir\vs_enterprise.exe -RedirectStandardError $dir\err -RedirectStandardOutput $dir\out -ArgumentList "export --installpath `"$installationPath`" --quiet --config $vsconfig" | ||
| $p.WaitForExit() | ||
| $x = [Datetime]::Now.AddSeconds(60) | ||
| while (!(Test-Path $vsconfig) -and ([datetime]::Now -lt $x)) | ||
| { | ||
| Sleep 5 | ||
| Write-Host "Waiting for vsconfig file..." | ||
| } | ||
|
|
||
| Get-Content $dir\err | ||
| Get-Content $dir\out | ||
| Get-Content $vsconfig |
This file contains hidden or 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
9 changes: 9 additions & 0 deletions
9
change/react-native-windows-2019-10-15-18-17-54-v141path.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "type": "none", | ||
| "comment": "Don't hardcode the path to v141 platform toolset", | ||
| "packageName": "react-native-windows", | ||
| "email": "asklar@winse.microsoft.com", | ||
| "commit": "5259e65b49ff7d0131cc7d731ca7bd3438b03776", | ||
| "date": "2019-10-16T01:17:54.674Z", | ||
| "file": "F:\\rnw\\change\\react-native-windows-2019-10-15-18-17-54-v141path.json" | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.