“项目文件已卸载"将 VS2010 项目移动到另一台服务器时 [英] "The project file was unloaded" when moving VS2010 project to another server

查看:19
本文介绍了“项目文件已卸载"将 VS2010 项目移动到另一台服务器时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过将文件夹内容复制并粘贴到另一台服务器上的另一个文件夹,将 Visual Studio 2010 项目移动到另一台服务器.

I have moved a Visual Studio 2010 project to another server by copying and pasting the folder contents into another folder on a different server.

我的理解是 VS2010 处理得很好;当我在本地完成此操作时,它从来都不是问题.

My understand was that VS2010 handled this well; when I have done this locally it has never been an issue.

现在我收到这样的错误:

Now I get an error like this:

当我右键单击并重新加载项目"时,文件列表在再次消失之前短暂出现,给出了原始错误.

When I right click and "Reload project", the list of files briefly appears before disappearing again, giving the original error.

我做错了什么吗?

推荐答案

我今天遇到了这个问题,我花了一段时间才弄清楚发生了什么.

I had this problem today and it took me a while to figure out what was going on.

您的问题很可能是您的解决方案最初是使用包含对某些项目类型(例如Windows 服务"或其他一些特殊项目类型)的支持的 Visual Studio 配置制作的.您用于导入解决方案的 Visual Studio 配置不提供该支持.换句话说,

Your problem is most likely that your solution was originally made with a Visual Studio configuration that contained support for certain project types (such as "Windows Service" or some other exotic project type). The Visual Studio configuration you are using to import your solution does not have that support. In other words,

  • 您的解决方案可能没有问题,
  • 您的项目可能没有任何问题,
  • 任何文件都可能没有任何问题(正如您所提到的,它们确实会短暂显示,给您一点希望)

只需在新的 Visual Studio 上运行安装程序,并确保为您需要的所有项目类型启用支持,然后重试.

Just run the installer on the new Visual Studio and make sure the support is enabled for all the project types you need and try again.

这篇关于“项目文件已卸载"将 VS2010 项目移动到另一台服务器时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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