将解决方案文件更改到其他文件夹 [英] change solution file to a different folder

查看:118
本文介绍了将解决方案文件更改到其他文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改现有解决方案文件(sln)的文件夹?

How do I change the folder of my existing solution file (sln)?

现在在我项目的一个文件夹中;如果我剪切解决方案文件并将其粘贴到根文件夹中,则不会加载我的任何项目.

It's right now inside one of my project's folder; if I cut the solution file and paste it in the root folder,it doesn't load any of my projects.

推荐答案

解决方案文件只是一个文本文件.您应该能够移动它,然后对其进行编辑,以确保文件中引用的所有相对路径都是正确的.

The solution file is just a text file. You should be able to move it and then edit it to make sure that any relative paths referenced in the file are correct.

我还能够在解决方案资源管理器中右键单击解决方案文件,然后使用另存为将其保存在其他位置.但这似乎并不是每次都对我有用.

I've also been able to right-click on the solution file in the solution explorer and then use save-as to save it in a different location. That doesn't seem to work everytime for me though.

这篇关于将解决方案文件更改到其他文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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