Setting the default namespace in Visual Web Developer 2008 Express

Hi everyone I just started a new project using Visual Web Developer 2008 Express and all my code gaps are not in any namespace. How can I set the default namespace for a project?

In VisualStudioPro it was used in project properties, website properties in Visual Web Developer 2008 Express looks very ... express.

Thank,

David.

+1


source to share


3 answers


Visual Web Developer (prior to 2008 SP1) does not support web application projects. By default, the namespace is only available in web application projects.

If you really want to add your classes to the namespace, you have to do it manually (a namespace with a code snippet can be quite useful) by wrapping them in a namespace operator:



namespace MyDefaultNamespace {
   // original code
}

      

+2


source


If you are using a website template, then namespaces are not used. If so, consider using the Web Application Project Template.



+1


source


Search and replace to find the namespace and replace it with what you want.

0


source







All Articles