使用 Visual Studio 2017 打开解决方案 [英] Opening solution using Visual Studio 2017

查看:77
本文介绍了使用 Visual Studio 2017 打开解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Visual Studio 2017 中的 Xamarin 开发这款适用于 android 的小型移动应用.

I have been working on this little mobile app for android using Xamarin in Visual Studio 2017.

当我用我用来开发应用程序的笔记本电脑打开解决方案时,它就像一个魅力.然后我将整个文件夹压缩到解决方案上.

When opening the solution with the laptop that I used to develop the app works like a charm. Then I zip the entire folder over the solution.

../myFolder/
    app1/                     //here is all the code
    app1.sln                  //solution file

 myFolder.zip

zip 文件通过USB、电子邮件和在线存储库,甚至rar7zp 等扩展程序传输到其他笔记本电脑/PC>tar.我根本无法从其他 Visual Studio 加载解决方案,而是从我最初创建/开发应用程序的那个.

Transfer the zip file to other laptop/PC through usb, email and online repository, even extensions like rar, 7zp and tar. I simply can not load the solution from other Visual Studio but the one where I created/developed the application originally.

此屏幕经过数小时,然后 VS 没有响应,之后,它只是崩溃/关闭而没有错误消息.

Hours passing with this screen then VS is not responding and after that, it simply crashes/closes with no error message.

另一方面,我可以在笔记本电脑中打开从任何其他 PC 创建的任何解决方案,而不会出现问题.保存后,我还没有找到模式,但有些解决方案无法从创建它们的原始PC或其他PC打开.

In the other hand, I can open any solution created from any other PC in my laptop without issues. After saving, I haven't found the pattern yet, but some solutions can't be opened from the original PC which creates them nor others.

推荐答案

您可能在遇到问题的 PC 上使用旧版本的 Visual Studio.我也遇到过这种情况.

You may be using an older version of Visual Studio on the PC you've facing the issue. I've faced that too.

这是一个已知错误(此处报告此处) 已在较新版本上修复.

It was a known bug (reported here and here) already fixed on newer versions.

解决方法是关闭 VS,删除在您的解决方案的同一目录中创建的文件夹 vs,然后尝试重新打开它.

The workaround is to close VS, delete the folder vs created in the same directory of your solution and try to reopen it.

为了避免在此之后编译或运行您的应用程序时出现其他问题,我建议您还删除项目文件夹中的所有 binobj 文件夹,清理并重建解决方案.

To avoid other problems on compiling or running your app after that, I recommend you also to delete all bin and obj folders from your project's folders, clean and rebuild the solution.

在软件方面保持所有开发环境的更新以避免此类麻烦更安全.

It's safer keep all your development environments updated in software wise to avoid this kind of trouble.

希望能帮到你.

这篇关于使用 Visual Studio 2017 打开解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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