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

查看:66
本文介绍了命名空间“Microsoft"中不存在类型或命名空间名称“VisualStudio"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从 这里,命名空间 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!

命名空间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.

将整个解决方案移至默认的 My Documents/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).

这篇关于命名空间“Microsoft"中不存在类型或命名空间名称“VisualStudio"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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