Design a site like this with
Get started

Moving a file from one folder to another in visual studio but it shows older project folder in ‘using’ statement

This issue occurs when we copy paste the entire code to the new file and we forget to change the name of namespace. After pasting the code to new file, change this line:

namespace ProjectName.oldfolder

to this one:

namespace ProjectName.newfolder

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a free website or blog at

Up ↑

%d bloggers like this: