'var_name'is not declared. It may be inaccessible due to its protection level.' in debug mode

后端 未结 4 1682
面向向阳花
面向向阳花 2020-12-18 23:33

This behavior is in a vb.net web application solution with multiple class library projects referenced by the web app.

The code compiles, but in debug mode, some func

4条回答
  •  有刺的猬
    2020-12-19 00:03

    A few months back I was dealing with exact same issue in VS2013. It is a maddening bug that Microsoft is (last I saw) unable to reproduce. For me, it came and went with no apparent reason. The first few times I got rid of it by doing some of the things you have already tried above. But then it came back and I could not get rid of it. What finally did the trick was uninstalling and removing all traces of all versions of Visual Studio (including a manual sweep of the registry), getting rid of all code, projects, solutions, etc, and removing all versions of .NET.

    Then I put .NET back, re-installed VS2013, and got latest from TFS. Since then, it has not come back. Sure hope it doesn't. Good luck!

提交回复
热议问题