如何更改 Visual Studio 2010 中 .sln 文件的默认位置?
我希望我的 .sln 始终位于我的项目文件夹中。创建新项目时如何使其成为默认行为?
I'd like my .sln to always live within my project folder. How can I make this the default behavior when creating a new project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
要更改新网站的创建位置,您可以更改此注册表项:
由于它是最近使用的设置,因此在您为网站选择新位置后可能会更新。
“10.0”根目录下有一些以“Location”结尾的键,可以以类似的方式更改这些键以影响项目和其他内容的默认目录。
一如既往,修改注册表时要小心,否则可能会破坏 VS。
To change the creation location for a new website, you can change this registry key:
As it is a Most Recently Used setting it may update after you choose a new location for a website.
There are keys under the "10.0" root ending in "Location" which can be changed in a similar fashion to affect the default directories for projects and other things.
As always, take care when modifying the Registry or you may break VS.
第一次保存解决方案时,取消选中“为解决方案创建目录”复选框。 Visual Studio 会记住此选择,当您创建和保存新解决方案时,它将保持未选中状态,直到您再次更改它。
Uncheck the "Create directory for solution" checkbox when you save the solution for the first time. Visual Studio memorizes this choice, it will stay unchecked when you create and save new solutions, until you change it again.
这是“Visual Studio 解决方案的 ShellNew 扩展”,您可以使用它,网址 http://www.peterprovost.org/blog/post/ShellNew-Extension-for-Visual-Studio-Solutions.aspx
Here is "ShellNew Extension for Visual Studio Solutions" you can use this , url http://www.peterprovost.org/blog/post/ShellNew-Extension-for-Visual-Studio-Solutions.aspx
在新项目窗口中,取消选中
为解决方案创建目录
复选框。或者您是在问如何使其默认情况下不选中该框?
On the new project window uncheck the box that says
Create directory for solution
.or are you asking how to make it so that box is unchecked by default?