I am working on an existing windows form application. I just need to make a few changes, during these changes I came across a scenario where I also need to rename an existing namespace. Now, renaming this namespace, my project is not running. Although it compiles fine, it breaks into the next line of code
ImageList il = new ImageList(); ImageList = il; il.Images.Add((Image)new Bitmap(GetType(), "Images.ImageFileName.png"));//when this line is executed a dialog box appears and says that "there is no source code available for current location"
Now that I am new to the .net world, I study this problem and believe that it arises due to changes in namspace. I am also trying to rename the namespace in Resource.Designer.cs but this also did not solve my problem.
source share