Commit 4d2bce6
authored
DevCheck: LongPath support, verify nuget.exe, fix ExitCode, fix InstallWindowsSDK, add/fix SettingsFile, update Getting Started docs #5785
* New options:
* -CheckNugetExe - Verify nuget.exe is present
* -FixAll - Enable all -Fix* options plus -NugetRestore
* -FixLongPath - Enable LongPath support if necessary
* -InstallWindowsSDK - Download and install Windows Platform SDKs (if necessary)
* -NugetExe <path> - Location of nuget.exe (default=".user\nuget.exe")
* -NugetMinVersion <version> - Minimum required version of nuget.exe (default="6.14.0.116")
* -NugetExeUpdate - Download nuget.exe to the -NugetExe path
* -NugetRestore - Restore nuget packages
* Fixed error reporting. ExitCode=0 if successful, ExitCode=1 if 1+ issue(s) occurred
* Added LongPath detection/enablement
* Enhanced -CheckVisualStudio to detect `vswhere.exe` in PATH if not found at default install location
* Fixed Install-WindowsSDK to respect -Offline
* Changed SettingsFile handling:
* -SaveSettingsFile is now a boolean
* Default filename is DevCheck-Settings.ps1 next to DevCheck.ps1
* Removed fallback to look for SettingsFile in root\.user
* Added a default settings file for this repo
* paths to check/update dependencies (-CheckDependencies, -SyncDependencies)
* Windows SDK versions/URLs to check/install (-CheckWindowsSDK, -InstallWindowsSDK)
* paths/files to check to restore Nuget packages (-NugetRestore)
* Updated Getting Started documentation (`docs\Coding-Guidelines\GettingStarted.md`)
Ubersimplified usage to check everything is ready to rock and if not, fix it:
```
DevCheck -FixAll
```
See Getting Started documentation for more details.1 parent 0a8c767 commit 4d2bce6
File tree
4 files changed
+427
-123
lines changed- build/AzurePipelinesTemplates
- docs/Coding-Guidelines
- tools/DevCheck
4 files changed
+427
-123
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
67 | 23 | | |
68 | 24 | | |
69 | 25 | | |
70 | 26 | | |
71 | 27 | | |
72 | 28 | | |
73 | 29 | | |
| 30 | + | |
| 31 | + | |
74 | 32 | | |
75 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
76 | 36 | | |
77 | 37 | | |
78 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments