使用Visual Studio 2017打开解决方案 [英] Opening solution using 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
通过USB,电子邮件和在线存储库,甚至包括rar
,7zp
和tar
之类的扩展名,将zip
文件传输到其他笔记本电脑/PC.我根本无法从其他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中打开某些解决方案,也无法打开其他解决方案.
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.
为避免之后在编译或运行应用程序时出现其他问题,我建议您还删除项目文件夹中的所有bin
和obj
文件夹,清理并重建解决方案.
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.
我希望它会有所帮助.
I hope it helps.
这篇关于使用Visual Studio 2017打开解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!