[英]How to configure .sln Visual Studio Project file to be stored in the project folder?
I come from Visual Studio 2008, where the .sln file used to be stored in the project folder. 我来自Visual Studio 2008,其中.sln文件曾经存储在项目文件夹中。 Now I see it is stored in documents\\Visual Studio 2010\\Projects\\ProjectName\\, which I don't like at all. 现在我看到它存储在Documents \\ Visual Studio 2010 \\ Projects \\ ProjectName \\中,我根本不喜欢它。
How can I store it automatically in the project folder? 如何将其自动存储在项目文件夹中? Without cutting and pasting it each time I open a new project... 每次我打开一个新项目时都不会剪切和粘贴它......
A screenshot with a Big Red Arrow on the relevant controls: 相关控件上带有大红色箭头的屏幕截图:
The "Create directory for solution" checkbox is ticked by default. 默认情况下勾选“创建解决方案目录”复选框。 Turn it off to get the project stored in the same directory as the solution. 将其关闭以使项目存储在与解决方案相同的目录中。 VS memorizes the last setting you used. VS会记住您使用的最后一个设置。
The "Location" property determines where the solution is stored. “位置”属性确定解决方案的存储位置。 The default is the path that you complain about. 默认值是您抱怨的路径。 Just edit it. 只需编辑它。 Or change the default setting like I did: Tools + Options, Projects and Solutions, General, "Projects location" setting. 或者像我一样更改默认设置:工具+选项,项目和解决方案,常规,“项目位置”设置。
You can change the path where new projects and files are created by using the Options dialog box. 您可以使用“选项”对话框更改创建新项目和文件的路径。 Your existing projects remain in their current location. 您现有的项目仍保留在当前位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.