“Value does not fall within the expected range” when trying to add a reference in a project

后端 未结 9 604
栀梦
栀梦 2020-12-02 16:31

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

9条回答
  •  独厮守ぢ
    2020-12-02 17:16

    Some projects (e.g. some web services) require that Visual Studio be run as an administrator. After a Visual Studio upgrade, I hadn't noticed that it was no longer being started with elevated privileges automatically. When I corrected this, all the projects in the solution loaded.

提交回复
热议问题