如何重定位Visual Studio项目(.sln)文件 [英] How to Relocate Visual Studio project (.sln) file

查看:152
本文介绍了如何重定位Visual Studio项目(.sln)文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Visual Studio解决方案(myProject.sln)文件移到文件夹中.

I would like to move the Visual Studio solution (myProject.sln) file into a folder.

这样做的问题是项目中的所有相对路径都将中断,如何在不手动更新项目内部的所有相对路径的情况下重新定位项目?

The problem with doing this is that all the relative paths in the project will break, how can you relocate the project without updating all relative paths inside the project manually?

谢谢.

推荐答案

只需在解决方案资源管理器中单击解决方案,然后在文件"菜单中单击将myProject.sln另存为...".这会将您的.sln保存在您选择的文件夹中,而不会破坏引用.

Just click on the solution in the Solution Explorer and then click on "Save myProject.sln as..." in the File Menu. This will save your .sln in the folder that you choose without breaking the references.

这篇关于如何重定位Visual Studio项目(.sln)文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆