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

后端 未结 9 628
栀梦
栀梦 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

    In my case it was simple, if the file is open and then I run it, it will run. If the file is closed and then I run it by right clicking from the "Solution Explorer", then it throws the error you mentioned. So, simple steps: In the Solution Explorer,

    1. Double click on the file and open it
    2. Right click on the file and select "Start with Debugging" or "Start without Debugging"

提交回复
热议问题