Bug 14533 - Default namespace is always the same
Summary: Default namespace is always the same
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: unspecified
Hardware: PC All
: Normal normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-09-08 12:49 UTC by Mike Krüger
Modified: 2016-10-25 21:07 UTC (History)
1 user (show)

Tags:
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:
Status:
RESOLVED NORESPONSE

Description Mike Krüger 2013-09-08 12:49:45 UTC
Use case: 

Create a file in a subdirectory of the current project.

Result:

Namespace is the base name every time.

Expected:

Namespace should be like: <BaseName>.<DirName>

(I think that the GetDefaultNamespace method always returns <BaseName>)


This one is really annoying when new files are created.
Comment 1 Mikayla Hutchinson [MSFT] 2013-09-08 14:06:38 UTC
There's a policy setting, you probably have it disabled?
Comment 2 Mike Krüger 2013-09-08 14:59:31 UTC
I didn't disable it - I would say I haven't enable it ... what is the default setting for that ?

A little bug in the panel:

When I select linear namespace the preview shows

DefaultNamespace.A

for the directory 'A' - inside the IDE the namespace generated is 'A'. (Either we need more complex options or the preview is wrong).
Comment 3 Mikayla Hutchinson [MSFT] 2013-09-08 15:12:47 UTC
Works fine for me. Does you project perhaps have an empty default namespace value?
Comment 4 Jeffrey Stedfast 2016-10-25 21:07:38 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!