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 proje
I did a 'devenv /setup' and that fixed it.
Detail
Startcmd, right click Command Prompt and select Run as administratorNavigate 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\
VS2019: pushd %programfiles(x86)%\Microsoft Visual Studio\2019\
Type devenv /setup and press enter
More Information
https://msdn.microsoft.com/en-us/library/ex6a2fad.aspx