Pour utiliser Visual Studio en ligne de commande il faut : ===Ligne de commandes historique=== "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 [[https://learn.microsoft.com/fr-fr/cpp/build/building-on-the-command-line?view=msvc-170|Utiliser l’ensemble d’outils Microsoft C++ à partir de la ligne de commande]] {{ :ide:vs:cmd:utiliser_l_ensemble_d_outils_microsoft_c_a_partir_de_la_ligne_de_commande_microsoft_learn_9_17_2024_3_32_40_pm_.html |Archive du 10/12/2023 le 17/09/2024}} ===PowerShell=== Push-Location Import-Module "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" Enter-VsDevShell -VsInstallPath "C:\Program Files\Microsoft Visual Studio\2022\Community" -DevCmdArguments '-arch=x64' Pop-Location Attention, ''Enter-VsDevShell'' change le dossier courant. [[https://stackoverflow.com/questions/2124753/how-can-i-use-powershell-with-the-visual-studio-command-prompt|How can I use PowerShell with the Visual Studio Command Prompt?]] {{ :ide:vs:cmd:how_can_i_use_powershell_with_the_visual_studio_command_prompt_-_stack_overflow_9_17_2024_3_34_42_pm_.html |Archive du 23/01/2010 le 17/09/2024}}