[MonoDevelop] Changing default namespaces for a project?
m.j.hutchinson at gmail.com
Wed Jul 30 20:08:56 EDT 2008
On Wed, Jul 30, 2008 at 7:59 PM, Chris Wright <dhasenan at gmail.com> wrote:
> Hi all,
> Is there a way to set the default namespace for a project? It's easier
> to work with files and directories from the command line if the names
> are lowercase, but I want my namespaces to use Pascal case.
> Additionally, I'd like not to repeat the solution name in each project
Project options -> Default Namespace.
> I tried changing the name of the project in the solution file and the
> assembly name in both the csproj file and the AssemblyInfo.cs file.
> These did nothing. Does MD use the project's filename as the default
> (This is in MD svn revision 107873. There wasn't any way to do this
> with 1.0, either.)
You've been able to set the projects default namespace since well before 1.0 :-)
It's initalised with the project's name when the project's created,
but not changed automatically if you rename the project.
> Also, in Visual Studio, folders are usually considered namespaces. Is
> there any way to get this behavior, or any plans to implement this?
Between 1.0 and 1.9 this feature was added: there's a checkbox next to
the "Default Namespace" field in the project options.
More information about the Monodevelop-list