问题描述
我可以从在这里,名称空间Visual Studio
应该存在于名称空间Microsoft
中,但出现此错误,并且我的测试都无法正常工作!
I can see from here, that the namespace Visual Studio
should exist within namespace Microsoft
, yet I get that error and none of my tests are working!
我正在将Visual Studio 2012与Windows 8.1一起使用(全部已更新).
I am using Visual Studio 2012 with Windows 8.1 (all updated).
推荐答案
好,我发现了问题所在.我所有的解决方案文件都放在与通常的默认文件不同的位置.
Ok I found out what the issue was. I had all the solution files in a different place than the usual default.
我将它们放在Dropbox文件夹中,希望可以在多台计算机上使用该解决方案,但这显然是问题的原因.
I had them in a Dropbox folder hoping that I can work on the solution from multiple computers, but apparently that was the cause of the issue.
将整个解决方案移至默认的我的文档"/VS 2012/Projects/,可以为我解决此问题!
Moving the whole solution to the default My Documents/VS 2012/Projects/ fixed the problem for me!
简而言之,如果您希望事情顺利进行,那么除非您是高级用户并且知道您在做什么(不是我),否则通常将解决方案文件放在通常的位置.
In short, if you want things to work smoothly, have the solution files in the usual place, unless you're an advanced user and know what you're doing (I'm not).
这篇关于类型或名称空间名称"VisualStudio"在名称空间"Microsoft"中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!