Bug 8658 - Unable to rename a .designer file
Summary: Unable to rename a .designer file
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2012-11-29 06:15 UTC by Dylan
Modified: 2012-12-13 17:05 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
incorrectly named file (7.24 KB, image/png)
2012-11-29 06:15 UTC, Dylan
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Dylan 2012-11-29 06:15:11 UTC
Created attachment 3025 [details]
incorrectly named file

In a MonoTouch project, I want to copy and paste a xib and it's two .cs files. The cs file has a .designer file as a node underneath it. When I copy it, it creates a new designer file and appends (copy) to the end of the filename. However I am now completely unable to rename this file. See the attached screenshot, I copied the PurchaseScreen.cs which comes with a .designer but now I cannot rename the file no matter what I do.
Comment 1 Mikayla Hutchinson [MSFT] 2012-11-29 18:58:16 UTC
I think Jeff fixed this in master, but I'm not sure.
Comment 2 Jeffrey Stedfast 2012-12-13 16:48:45 UTC
Looks like the context menu won't allow you to rename the file in MonoDevelop 3.1.0

Now that I fixed the drag&drop of .designer.cs files, most of the backend logic is probably there, we might just need to enable the UI.
Comment 3 Jeffrey Stedfast 2012-12-13 17:05:54 UTC
Hah. All I had to do was enable the UI option and the backend logic worked.

This is now fixed in git master.


As a workaround in MonoDevelop 3.1.x, you can drag&drop the designer.cs file out from under the parent source file, rename it, and then drag&drop it onto the source file to make it a child again.