mirror of https://github.com/aminya/setup-cpp
fix: use --add to add msvc workloads
https://github.com/jberezanski/ChocolateyPackages/blob/master/chocolatey-visualstudio.extension/EXAMPLES.md#add-the-data-workload-to-all-installed-vs-2017-communityprofessionalenterprise-instances-downloading-needed-files-from-the-internet-only-required-components-webdeploy-and-the-visualstudiodata-component-will-be-added
This commit is contained in:
parent
24f8038744
commit
3f0939b85c
|
@ -46,14 +46,14 @@ export async function setupMSVC(
|
||||||
toolset = "14.16"
|
toolset = "14.16"
|
||||||
await setupChocoPack("visualstudio2017buildtools", "15.9.38.0", [
|
await setupChocoPack("visualstudio2017buildtools", "15.9.38.0", [
|
||||||
"--package-parameters",
|
"--package-parameters",
|
||||||
"add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive",
|
"--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive",
|
||||||
])
|
])
|
||||||
VCTargetsPath = "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16" // TODO verify path
|
VCTargetsPath = "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16" // TODO verify path
|
||||||
} else if (version === "2019") {
|
} else if (version === "2019") {
|
||||||
toolset = "14.29.30133"
|
toolset = "14.29.30133"
|
||||||
await setupChocoPack("visualstudio2019buildtools", "16.11.2.0", [
|
await setupChocoPack("visualstudio2019buildtools", "16.11.2.0", [
|
||||||
"--package-parameters",
|
"--package-parameters",
|
||||||
"add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive",
|
"--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --passive",
|
||||||
])
|
])
|
||||||
VCTargetsPath = "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"
|
VCTargetsPath = "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue