类型或名称空间名称"VisualStudio"在名称空间"Microsoft"中不存在 [英] Type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft'

查看:328
本文介绍了类型或名称空间名称"VisualStudio"在名称空间"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!

名称空间"Microsoft"中不存在类型或名称空间名称"VisualStudio"(您是否缺少程序集引用?)

The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

我正在将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"中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆