44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
【vs_buildtools】
|
|
参考链接:
|
|
https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2022
|
|
|
|
[vs_buildtools]
|
|
.\vs_BuildTools.exe --passive --wait --layout E:\vs2022\data --lang en-US --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --add Microsoft.VisualStudio.Component.VC.ATL Microsoft.VisualStudio.Component.VC.ATLMFC
|
|
|
|
[vs]
|
|
VisualStudioSetup.exe --layout D:\Data\cplusplus_development_complete_vs2017_2024\data --lang zh-CN --add Microsoft.VisualStudio.Workload.NativeCrossPlat --includeRecommended --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended --add Microsoft.VisualStudio.Component.VC.ATL Microsoft.VisualStudio.Component.VC.ATLMFC Microsoft.VisualStudio.Component.VC.CLI.Support
|
|
|
|
远程配置参考:
|
|
{
|
|
"configurations": [
|
|
{
|
|
"name": "Linux-GCC-Debug",
|
|
"generator": "Ninja",
|
|
"configurationType": "Debug",
|
|
"cmakeExecutable": "cmake",
|
|
"remoteCopySourcesExclusionList": [ ".vs", "out" ],
|
|
"cmakeCommandArgs": "",
|
|
"buildCommandArgs": "",
|
|
"ctestCommandArgs": "",
|
|
"inheritEnvironments": [ "linux_x64" ],
|
|
"remoteMachineName": "${defaultRemoteMachineName}",
|
|
"remoteCMakeListsRoot": "$HOME/.vs/dirroot/xxx",
|
|
"remoteBuildRoot": "$HOME/.vs/dirroot/out/build/${name}",
|
|
"remoteInstallRoot": "$HOME/.vs/dirroot/out/install/${name}",
|
|
"remoteCopySources": true,
|
|
"rsyncCommandArgs": "-a -t --delete",
|
|
"remoteCopyBuildOutput": false,
|
|
"remoteCopySourcesOutputVerbosity": "Normal",
|
|
"remoteCopySourcesMethod": "rsync",
|
|
"variables": []
|
|
}
|
|
]
|
|
}
|
|
|
|
如果总是失败,可能需要更新远端的rsync和cmake
|
|
rsync源码编译需要:
|
|
sudo apt update
|
|
sudo apt install -y libxxhash-dev libzstd-dev liblz4-dev
|
|
cmake编译需要:
|
|
sudo apt update
|
|
sudo apt install -y libssl-dev |