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 comment

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

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started