Google Test Adapter安装

背景

我有一个vs2015 的gtest 工程,编译完成后,需要gtest adapter帮我把测试列表显示出来,但是通过vs自带的工具或者网页下载安装遇到2个问题:

1、下载速度超级慢,慢到我能到火星再回来;

2、网页下载安装后,打开vs显示没有安装,依然不可用。https://marketplace.visualstudio.com/items?itemName=ChristianSoltenborn.GoogleTestAdapter&ssr=false#overview

尝试解决

直接用nuget package manager安装,nuget的源要好用的多,但是也有问题。

可以看到,无法单选做debug,必须要安装到VS。

The following warnings and errors occured during test execution (enable debug mode for more information):
[11:04:59.888 ERROR] Debugging is only possible if GoogleTestAdapter has been installed into Visual Studio - NuGet installation does not support this (and other features such as Visual Studio Options, toolbar, and solution settings).

so, what is going on?

原来,有人在这台电脑上安装了一个2019版本,网页下载安装的gtest adapter被安装到了2019版本,所以2015看不到,没办法,升级工程或者卸载2019。

posted @   Hello-FPGA  阅读(120)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示