Why are namespaces acting up in Visual Studio 2010?
Posted
by duluca
on Stack Overflow
See other posts from Stack Overflow
or by duluca
Published on 2010-04-23T23:44:56Z
Indexed on
2010/04/24
17:13 UTC
Read the original article
Hit count: 124
visual-studio-2010
|namespaces
I've just converted a project to VS 2010 and something really weird is going on with namespaces. Let me give an example, the following code used to work in VS2008:
MySystem.Core.Object
{
using MySystem.Core.OtherObject;
...
}
But now it doesn't, it either wants the whole thing to be put outside of the namespace like this:
using MySystem.Core.OtherObject;
MySystem.Core.Object
{
...
}
or be rewritten it like:
MySystem.Core.Object
{
using OtherObject;
...
}
I understand why this works and maybe is the correct way of handling this, but now we'd have to change thousands of lines of code! Which is not cool.
Any idea to circumvent this requirement?
© Stack Overflow or respective owner