简体   繁体   English

如何关闭在Visual Studio中为新添加的项目创建子文件夹的功能?

[英]How can I turn off creating a sub folder for a newly added project in Visual Studio?

When I try to add a new project in a solutin folder by browsing a folder, let's say 当我尝试通过浏览文件夹在solutin文件夹中添加新项目时,

..\\MyFolder .. \\ MyFolder

and give a new to my new Project: MyProject 并给我的新项目一个新的名称:MyProject

The result seems to be: 结果似乎是:

..\\MyFolder\\MyProject\\MyProject.cspoj .. \\ MyFolder \\ MyProject \\ MyProject.cspoj

but I want to achieve 但我想实现

..\\MyFolder\\MyProject.cspoj .. \\ MyFolder \\ MyProject.cspoj

And Icannot see any option or check-box on new project addin dialog box. 而且在新项目加载项对话框上看不到任何选项或复选框。

How can I turn of the feature to insert the new project in a auto-created subfolder? 如何打开该功能以将新项目插入自动创建的子文件夹中?

Thanks! 谢谢!

You cannot. 你不能。 Logically VS creates seperate folder for each project where code resides. 逻辑上,VS为代码所在的每个项目创建一个单独的文件夹。 It also keeps the project file in same directory for ease of use and portability. 它还将项目文件保留在同一目录中,以方便使用和可移植性。 You can however manually move the projects file to desired location but have to update solution/references. 但是,您可以手动将项目文件移动到所需位置,但必须更新解决方案/参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何关闭 Visual Studio 的格式化选项? - How do I turn off Visual Studio's formatting options? Visual Studio 2017:关闭所有“基于项目…”的建议 - Visual Studio 2017: Turn off all “Based on your project…” recommendations 如何将目标文件夹更改为GAC(Visual Studio 2010安装项目)? - How can I change target folder to GAC (Visual Studio 2010 Setup Project)? 在Visual Studio中,如何从项目Resources文件夹中加载.png图像? - In Visual Studio how can I load a .png image from the project Resources folder? “Visual Studio 已将 ASP.NET MVC 5 的全套依赖项添加到项目中”我可以撤消它吗? - "Visual Studio has added the full set of dependencies for ASP.NET MVC 5 to project" Can I reverse it? 如何在Visual Studio 2008中以编程方式检索已加载的项目? - How can I programmatically retrieve a loaded project in Visual Studio 2008? 如何编写Visual Studio数据库项目的部署脚本? - How can I script the deployment of a Visual Studio database project? 如何从 Visual Studio 中的另一个解决方案调试项目? - How can I debug a project from another solution in Visual Studio? 如何在Visual Studio网站项目类型中添加引用? - How can I add a reference in a Visual Studio website project type? 如何将 jQuery DateTimePicker 添加到我在 visual studio 中的项目 - How can I add jQuery DateTimePicker to my project in visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM