VS 2015和VS 2017在重新安装后运行不佳 [英] VS 2015 and VS 2017 not working well after re-installation

查看:174
本文介绍了VS 2015和VS 2017在重新安装后运行不佳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的SSD死了,我不得不更换它,我重新安装了操作系统(Windows 8.1)。 我还重新安装了VS 2015 Express for Desktop,我之前使用了很多个月,它将在调试和发布
模式下编译和运行我的项目。 但是,在调试模式下,大多数监视变量的值都不正确,将鼠标悬停在变量名称上显示的变量值也是如此。 我还重新安装了VS 2017社区版和
所有出现在"Visual Studio 2017"下的开始菜单中的内容。是"Visual Studio工具"。 换句话说,开始菜单中没有IDE。文件夹K:\Program Files(x86)\ Myrosoft
Visual Studio \ 201720下有大量的字节和文件,包括标记为IDE的子文件夹中的devenv.exe,但开头没什么菜单。



有谁知道可能出现的问题?  Microsoft是否已停止向社区免费提供C / C ++编译器?

解决方案

您好 CElliott316B



欢迎来到MSDN论坛。



正如你所说,我怀疑VS 2017和2015都已经被腐蚀了重新安装操作系统并恢复SSD驱动器。



别担心,MS仍然在VS中提供免费的C / C ++编译器工作负载。但现在,您需要清理安装缓存和文件夹。 
请按照清理步骤重试VS安装:




  • 查看您的计算机上是否有此文件:"%programfiles(x86)%\ Mesrosoft Visual Studio \Installer \ resources \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #212121">启动管理员命令提示符

    • 右键单击cmd.exe并选择以管理员身份运行

      • 如果是这样,请从带有-full参数的管理命令提示符启动它

    • InstallCleanup.exe -full

      • 如果没有,请手动删除"%programfiles(x86)%\ Microsoft Visual Studio \Installer"文件夹和"%programfiles(x86)%\ Microsoft Visual Studio \ 2017"
      • 确认已删除VS的初始安装位置。 
        如果不是,请手动将其删除。
      • 重新启动新下载的vs_community.exe:
        https://visualstudio.microsoft.com / vs / older-downloads /
      • 允许第一步安装安装程序
      • 安装程序启动后,您可以看到工作负载选择(.net桌面等),关闭它
      • 启动相同的InstallCleanup.exe以清理旧版本的VS
      • 然后重新启动vs_community.exe并安装VS



 


注意:这些步骤针对VS 2017或VS 2019.您需要通过强制运行命令行来卸载VS 2015:

https://visualstudio.microsoft.com/vs/support/vs2015/uninstall-visual-studio-2015/



然后重新安装它们以在调试模式下测试它。



任何更新请随时告诉我。



真诚


可能



<跨度>&NBSP;


My SSD died and I had to have it replaced, and I re-installed the O/S (Windows 8.1).  I also re-installed VS 2015 Express for Desktop, which I used previously for many months, and it will compile and run my project in both debug and release mode.  However, in debug mode, most of the watch variables have incorrect values, and this is true also of the values of variables displayed by hovering the mouse over the variable name.  I also re-installed VS 2017 Community Edition, and all that appears in the start menu under "Visual Studio 2017" is "Visual Studio Tools."  In other words there is no IDE in the start menu. There are a large number of bytes and files under the folder K:\Program Files (x86)\Microsoft Visual Studio\2017, including devenv.exe in a subfolder labeled IDE, but nothing in the start menu.

Does anyone know what could be wrong?  Has Microsoft stopped making a C/C++ compiler freely available to the community?

解决方案

Hi CElliott316B

Welcome to the MSDN forum.

As you said, I suspect that VS 2017 and 2015 has been corrupted both when you re-install OS and restore SSD drive.

Don’t worry, MS offer a free C/C++ compiler workload in VS still. But now, you need clean up your install cache and folder.  Please follow the cleanup steps and retry VS install:

  • See if you have this file on your machine: "%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe"
  • Start an admin command prompt
    • Right-click on cmd.exe and select Run As Administrator
      • If so, please launch it from an admin command prompt with a -full param
    • InstallCleanup.exe -full
      • If not, please manually delete the "%programfiles(x86)%\Microsoft Visual Studio\Installer" folder and "%programfiles(x86)%\Microsoft Visual Studio\2017"
      • Verify that your initial install location for VS is removed.  If it is not, delete it manually.
      • Relaunch the newly downloaded vs_community.exe from: https://visualstudio.microsoft.com/vs/older-downloads/
      • Allow the first step to install the installer
      • Once the installer comes up and you can see workload choices (.net desktop and the like), close it
      • Go launch the same InstallCleanup.exe to clean up old build of VS
      • Then relaunch vs_community.exe and install VS

 

Note: these steps aims to VS 2017 or VS 2019. You need to uninstall VS 2015 by running command line forcibly : https://visualstudio.microsoft.com/vs/support/vs2015/uninstall-visual-studio-2015/.

Then reinstall both of them to test it in debug mode.

Any update please feel free to let me know.

Sincerely

May

 


这篇关于VS 2015和VS 2017在重新安装后运行不佳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆