diff --git a/cookbooks/ros2_windows/recipes/visual_studio.rb b/cookbooks/ros2_windows/recipes/visual_studio.rb index 8b2ac9e..421c529 100644 --- a/cookbooks/ros2_windows/recipes/visual_studio.rb +++ b/cookbooks/ros2_windows/recipes/visual_studio.rb @@ -30,7 +30,7 @@ installer_options = base_options + package_arguments -visual_studio_source = 'https://aka.ms/vs/16/release/vs_%s.exe' % node['ros2_windows']['vs_version'] +visual_studio_source = 'https://aka.ms/vs/17/release/vs_%s.exe' % node['ros2_windows']['vs_version'] vs_version_camel_case = { 'buildtools' => 'BuildTools', @@ -39,7 +39,7 @@ 'enterprise' => 'Enterprise' }[node['ros2_windows']['vs_version']] -visual_studio_path = 'c:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\%s' % vs_version_camel_case +visual_studio_path = 'c:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\%s' % vs_version_camel_case windows_package 'Update VS' do source visual_studio_source installer_type :custom