Bug 23396 - The class.designer.cs file is duplicated under the class.cs file
Summary: The class.designer.cs file is duplicated under the class.cs file
Status: VERIFIED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 5.5
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2014-09-26 04:27 UTC by leslie.godwin
Modified: 2016-01-05 18:07 UTC (History)
7 users (show)

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


Attachments
Example of problem. (16.34 KB, image/png)
2014-09-26 04:27 UTC, leslie.godwin
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:
VERIFIED NOT_REPRODUCIBLE

Description leslie.godwin 2014-09-26 04:27:06 UTC
Created attachment 8202 [details]
Example of problem.

Description of Problem:

When adding a control in the designer, and changing it's Class (by typing in the class name and hitting enter)...
...and then dragging the newly created class into another directory...
...the class.designer.cs file is duplicated under the class.cs file.

Steps to reproduce the problem:
1. Drag new control into view controller.
2. Change it's class name ,and hit enter.
3. New class file appears in the solution tree view.
4. Now drag the new class file into another folder.

Actual Results:

There is now 2 class.designer.cs files under the class.cs file

Expected Results:

There should only be one.

How often does this happen? 

Every time.

Additional Information:
Comment 1 Alan McGovern 2014-09-26 06:48:31 UTC
Lluis, i think the solution pad is just displaying some items twice. I've seen it a few times but haven't been able to narrow down a way to reliably repro it.

I've triggered the issue by dragging a class (with nested .designer.cs) into the 'Resources' folder and then dragging it back out into the toplevel csproj.
Comment 2 leslie.godwin 2014-09-26 06:57:57 UTC
For me it's as simple as:
let the designer generate a new class,
then move it to my ViewControllers folder, which is a root folder in my project.
I have about 4 projects in my solution.
Comment 3 Akhilesh kumar 2016-01-04 09:52:22 UTC
I have checked this issue with the help of steps mentioned in the bug description and observed that this issue is working as expected.

screencast: http://www.screencast.com/t/QpNvne688Whx.

Hence closing this issue.

Build Info:

Xamarin Studio
Version 5.10.2 (build 49)
Installation UUID: 91997f85-0008-4b4c-9f53-c7f991fcdae3
Runtime:
	Mono 4.2.2 (explicit/11c1351)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010003

Xamarin.Profiler
Version: 0.24.354.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Xamarin.Android
Version: 6.0.1.5 (Enterprise Edition)
Android SDK: /Users/360_macmini/Desktop/AndroidSDK
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Xamarin Android Player
Version: 0.6.1
Location: /Applications/Xamarin Android Player.app

Apple Developer Tools
Xcode 7.2 (9548)
Build 7C68

Xamarin.iOS
Version: 9.4.1.13 (Enterprise Edition)
Hash: 7d6b9a7
Branch: master
Build date: 2015-12-18 06:22:20-0500

Xamarin.Mac
Version: 2.4.1.5 (Enterprise Edition)

Build Information
Release ID: 510020049
Git revision: deed4cd240ff3611c8742bbc62296e207f46173d
Build date: 2015-12-17 11:13:36-05
Xamarin addins: 8bd975e7b465f6fe812b64d736f3b7e8c1a79a3e
Build lane: monodevelop-lion-cycle6-c6sr1

Operating System
Mac OS X 10.10.5
Darwin Apple-iMac.local 14.5.0 Darwin Kernel Version 14.5.0
    Tue Sep  1 21:23:09 PDT 2015
    root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
Comment 4 Alan McGovern 2016-01-05 18:07:43 UTC
There's no fix for this, so I'll just change this to not reproducible.