CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 05:21:36 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/react-native-windows.git
etag: W/"0dbccad912487d660ad9c7215a682d1f"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=jpXCWqy7aEbUai0zeLd4g1Hcrknk3L9bdA%2BRvHrr7J4IcxS2bJiA1AAvF3FoigejsRwVwbXpxLWkWwahuMzNBiyzN1lkEjc9%2BbKpGQHrU3CbSTEqJ3KegsHrVbxzI5isjbs1e3iHuFZdpadTPLC3hxwNZYrIuO53cgZTb14bccCnnJriDNpgMsS4x6FX9wR4YGuhjtLyAqEcUE29FHk%2FQhAbfJoljPoqck8%2B7ZGOetpgHyqJmAdlHXDtIn98B%2FSjUO4JpQPa216fRn7KTK4jHg%3D%3D--kWYMeJskU5j6K%2FXy--jjo1gBk6WvqyOb%2BH7Lmrew%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1497006010.1753334495; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 05:21:35 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 05:21:35 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9C30:0A62:290EDD:37300B:6881C2DF
Added `MinimumVisualStudioVersion` env variable to force `run-windows… · microsoft/react-native-windows@68144e7 · GitHub
Copy file name to clipboard
Copy file name to clipboardExpand all lines: packages/@react-native-windows/cli/src/utils/msbuildtools.ts
Copy file name to clipboardExpand all lines: packages/@react-native-windows/cli/src/utils/vsInstalls.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit 68144e7
authored
Added
## Description
Fixes a bug in `run-windows` where we truncate the minimum VS version number so it only allows for one digit minor versions.
We try to detect when building inside a VS command prompt by looking for the `VisualStudioVersion` environment variable. In this way we can make sure to use specific (usually prerelease/preview) versions of VS.
However, we can also set this env variable manually, which I was trying to do. However, there are lots of other places in VS that read this value, and it always expects a major version with a 0 minor version (i.e. `17.0`, `18.0`). When setting `17.11`, (the version I'm trying to test for has fixes to #13339) the code was truncating it to `17.1`. Even fixing the truncation meant that the build would later fail anyway, since it wasn't a `X.0` number.
So this PR not only fixes the truncating code to keep `17.11` as `17.11`, but also adds a *new* env variable to check for, i.e. `MinimumVisualStudioVersion`, so that we can safely override that without breaking the build.
### Type of Change
- Bug fix (non-breaking change which fixes an issue)
### Why
Trying to test with VS 17.11 preview, the number kept getting truncated to 17.1. I need a way of specify the version I want without breaking the build
### What
Fixes the version range calculating code to not truncate the digits, adds new `MinimumVisualStudioVersion` env variable.
## Screenshots
N/A
## Testing
Verified run-windows could fine the preview 17.11 over the regular 17.10 installed.
## Changelog
Should this change be included in the release notes: yes
Added `MinimumVisualStudioVersion` env variable to force `run-windows` to use a particular version of VS installedMinimumVisualStudioVersion
env variable to force run-windows
to use a particular version of VS installed (#13373)1 parent 8892c66 commit 68144e7Copy full SHA for 68144e7
File tree
Expand file treeCollapse file tree
3 files changed
+18
-5
lines changedFilter options
- change
- packages/@react-native-windows/cli/src/utils
Expand file treeCollapse file tree
3 files changed
+18
-5
lines changedchange/@react-native-windows-cli-5ac25fa2-32bd-477c-a499-01c579f6cd37.json
Copy file name to clipboard+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
packages/@react-native-windows/cli/src/utils/msbuildtools.ts
Copy file name to clipboardExpand all lines: packages/@react-native-windows/cli/src/utils/msbuildtools.ts+8-2Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
203 |
| - | |
| 203 | + | |
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 |
| |
214 | 220 |
| |
215 | 221 |
| |
|
packages/@react-native-windows/cli/src/utils/vsInstalls.ts
Copy file name to clipboardExpand all lines: packages/@react-native-windows/cli/src/utils/vsInstalls.ts+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
| 85 | + | |
86 | 86 |
| |
87 |
| - | |
88 |
| - | |
| 87 | + | |
| 88 | + | |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
|
You can’t perform that action at this time.
0 commit comments