开发者

How to change default location of .sln file in Visual Studio 2010?

开发者 https://www.devze.com 2023-02-08 09:29 出处:网络
I\'d like my .sln to always live within my project folder. How can I make this t开发者_StackOverflow社区he default behavior when creating a new project?To change the creation location for a new websit

I'd like my .sln to always live within my project folder. How can I make this t开发者_StackOverflow社区he default behavior when creating a new project?


To change the creation location for a new website, you can change this registry key:

HKCU\Software\Microsoft\VisualStudio\10.0\
    NewProjectDialog\MRUSettingsVenusProjectLocationEntries\Value0

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.


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.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消