Bug 17308 - Namespace and folders are incorrect
Summary: Namespace and folders are incorrect
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.3.0
Hardware: PC Mac OS
: --- critical
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2014-01-17 20:49 UTC by James Clancey
Modified: 2014-01-18 02:36 UTC (History)
1 user (show)

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

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:

Description James Clancey 2014-01-17 20:49:56 UTC
When you create a new class in a folder the namespace is very very wrong.

Xamarin Studio used to just use the default namespace for the project.
Visual Studio uses the default namespace then .directory

We currently just use the folder name.


=== Xamarin Studio ===

Version 4.3.1 (build 3)
Installation UUID: 52089b5f-87fd-4a01-8acf-c63eac855683
	Mono 3.2.6 ((no/9b58377)
	GTK+ 2.24.23 theme: Raleigh
	GTK# (
	Package version: 302060000

=== Apple Developer Tools ===

Xcode 5.0.2 (3335.32)
Build 5A3005

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 9ec960a
Build date: 2014-07-01 15:11:40-0500

=== Xamarin.Android ===

Version: 4.11.0 (Business Edition)
Android SDK: /Users/Clancey/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		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)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Build Information ===

Release ID: 403010003
Git revision: bd21181650b29ffdb2c231beccb76097f3e7a399
Build date: 2014-01-09 00:12:45+0000
Xamarin addins: d56f838106065386208d53d6f1b34240068a919e

=== Operating System ===

Mac OS X 10.9.1
Darwin Jamess-MacBook-Pro-2.local 13.0.2 Darwin Kernel Version 13.0.2
    Sun Sep 29 19:38:57 PDT 2013
    root:xnu-2422.75.4~1/RELEASE_X86_64 x86_64
Comment 1 Mikayla Hutchinson [MSFT] 2014-01-18 00:30:56 UTC
This is a preference.
Comment 2 James Clancey 2014-01-18 01:08:07 UTC
Where can I change it then?
Comment 3 James Clancey 2014-01-18 01:12:52 UTC
If there is not an option to change this, then our default namespace setting is broken for the  projects. Either way its more work for developers. And it makes absolutely no sense for each file to be in a completely different namespace for the same exact library. That is not just a personal preference especially since it recently changed.
Comment 4 Mikayla Hutchinson [MSFT] 2014-01-18 02:36:33 UTC
It's a per project policy, like code formatting:
.NET naming conventions