English 中文(简体)
演播室视觉空间
原标题:Change Project Namespace in Visual Studio

我怎么能改变视觉演播室的项目名称?

名称空间目前为WindowsFormsApplication<16/code>,我希望名称空间为。 MyName

最佳回答

You can change the default namespace:
-> Project -> XXX Properties...
On Application tab: Default namespace

Other than that:
Ctrl-H
Find: WindowsFormsApplication16
Replace: MyName

问题回答

不用Find &取而代之,你可以正确地点击代码和中的名称空间。 参考书:

可通过

在视频演播室右侧播放,然后选定<代码>。 Edit Project file or open the .csproj file direct subsequently within the <Propertygroup> tag写道:

<RootNamespace>YourNamespaceName</RootNamespace>

假设这是C#项目,并假定你想要改变缺省名称空间,你需要去项目财产、申请表和具体指明“Default namespace”。

身份标识空间是视觉演播室在你创建新课时所设计的名称空间。 之后,你将使用上述步骤中规定的名称空间。

"Default Namespace textbox in project properties is disabled" Same with me (VS 2010). I edited the project file ("xxx.csproj") and tweaked the item. That changed the default namespace.

正确点击你想要改变的名称(可以是名称空间,也可以是任何其他东西),并选定Recent->Rename...

进入新名称,请假地点作为[全球名称空间],如果你想要并重新做,检查预约!

权利点击特性、申请表,然后见组名和假名空间

<>First>

  1. Goto menu: Project -> WindowsFormsApplication16 Properties/
  2. write MyName in Assembly name and Default namespace textbox, then save.

<>2>

  1. open one old .cs file ( a class or a form)
  2. right click on WindowsFormsApplication16 in front of namespace, goto Refactor -> Rename .
  3. write MyName in New name textbox, in Rename Message Box.
  4. press Ok, then Apply




相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...