mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-01-06 02:49:31 -06:00
RootFolderInput component allows to input the root folder and application folder and these two folders are used across whole documentation, they are persisted in the local storage. Also pretty huge enhancements: - Docusaurus upgraded to 2.0.0-beta.14 - APITable component - RootFolderInput / RootFolder components - enhanced docusaurus.config.js - new qmake syntax highlighter - fixed bash syntax highlighter - fixed robots.txt, moved to static/ folder - enabled sass for css modules and for global customCss
20 lines
587 B
PowerShell
20 lines
587 B
PowerShell
Param(
|
|
[Parameter(Position = 0, HelpMessage = 'Visual Studio version.')]
|
|
[ValidateNotNull()]
|
|
[ValidatePattern('2019|2022')]
|
|
[Int]$Version = 2019
|
|
)
|
|
|
|
Set-StrictMode -Version 3.0
|
|
|
|
$programFiles = $Version -gt 2019 ? 'Program Files' : 'Program Files (x86)'
|
|
|
|
cmd.exe /c "call `"C:\$programFiles\Microsoft Visual Studio\$Version\Community\VC\Auxiliary\Build\vcvars32.bat`" && set > %TEMP%\vcvars32_$Version.tmp"
|
|
|
|
Get-Content "$env:TEMP\vcvars32_$Version.tmp" | Foreach-Object {
|
|
if ($_ -match "^(.*?)=(.*)$") {
|
|
Set-Content "env:\$($matches[1])" $matches[2]
|
|
}
|
|
}
|
|
|