0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Github actions + windows-latest で cmake で Visual Studio 16 2019 could not find any instance of Visual Studio.

Posted at

背景

Github Actions で windows-latest

cmake -G "Visual Studio 16 2019"

としていたら could not find any instance of Visual Studio. と出るようになった.

原因

windows-latest だとなんか勝手に Visual Studio のバージョンを変えていて, ある日突然 VS2019 を扱わなくなったっぽい.

めんどいですね...

解決

VS 2022 を指定するようにする.

VS2019 を使いたい場合

microsoft/setup-msbuild を追加すれば治ると思われる.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?