“值不在期望范围内".尝试在项目中添加引用时 [英] "Value does not fall within the expected range" when trying to add a reference in a project
问题描述
突然,当我尝试添加对任何项目的引用时,都会出现此错误值未在预期范围内".新的空白项目也会发生这种情况.它可以列出当前的引用很好.
Suddenly I am getting this error "Value does not fall within the expected range" whenever I try to add a reference to any project. This also happens with a new blank project. It can list the current references fine.
我重新启动了计算机.我不确定最近的更新2是否导致了此问题.这是自更新以来我的第一个添加参考.我正在Windows 7 64bit上使用Visual Studio 2013.
I rebooted the computer. I am not sure if the recent Update 2 caused this. This is my first add reference since the update. I am using Visual Studio 2013 on Windows 7 64bit.
有什么想法吗?
推荐答案
我做了一个'devenv/setup'并固定了它.
I did a 'devenv /setup' and that fixed it.
详细信息
- 退出Visual Studio
- 点击
Start
- 键入
cmd
,右键单击Command Prompt
并选择Run as administrator
-
导航到相应的Visual Studio文件夹
VS2012:pushd %programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE
VS2015:pushd %programfiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE
VS2017:pushd %programfiles(x86)%\Microsoft Visual Studio\2017\<Edition>\Common7\IDE
VS2019:pushd %programfiles(x86)%\Microsoft Visual Studio\2019\<Edition>\Common7\IDE
- Exit Visual Studio
- Click
Start
- Type
cmd
, right clickCommand Prompt
and selectRun as administrator
Navigate to the appropriate Visual Studio folder
VS2012:pushd %programfiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE
VS2015:pushd %programfiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE
VS2017:pushd %programfiles(x86)%\Microsoft Visual Studio\2017\<Edition>\Common7\IDE
VS2019:pushd %programfiles(x86)%\Microsoft Visual Studio\2019\<Edition>\Common7\IDE
键入devenv /setup
并按Enter
更多信息
https://msdn.microsoft.com/en-us/library/ex6a2fad.aspx
这篇关于“值不在期望范围内".尝试在项目中添加引用时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!