使用 Visual Studio 2010 将项目缓慢纳入其中
我们公司赢得了一个新客户的网络项目。他们的老供应商基本上压缩了代码(C#/ASP.NET,包括大量媒体文件)并将其通过 FTP 发送给我们,并且不再以任何方式接听电话/提供支持。没有解决方案文件,没有项目文件,只有代码。
因此,我在本地创建了一个空项目,并将其移动到网络路径,并将其代码移到其中,因为我什至没有足够的空间来在本地托管它。他们的架构是可疑的,但我需要尽快恢复并运行它,所以我现在没有时间重新考虑这一点。我打开我创建的项目,选择“显示所有文件”并尝试包含所有路径(媒体文件和代码路径)并且应用程序挂起。其中一个媒体文件夹包含大约 65,000 个文件。我还需要包括这个吗?
无论如何,似乎执行“包含在项目中”要花很长时间,我花了几个小时与它搏斗,尝试一次执行一个文件夹......但通常它只是挂起,我必须终止该过程。有没有更快的方法来处理这个问题?我尝试直接编辑项目文件,但包含此媒体文件夹使得解决方案绝对需要永远加载。
关于如何处理这种情况有什么一般建议吗?
Our company won a web project from a new client. Their old vendor basically zipped up the code (C#/ASP.NET, including an enormous number of media files) and FTPed it to us and is no longer answering phone calls/supporting it in any way. There's no solution file, no project files, just code.
So I created an empty project locally and moved it to a network path and moved their code inside it because I don't even have enough space to host it locally. Their architecture is suspect, but I need to get it back up and running ASAP so I don't have time to reconsider that at the moment. I opened the project I created, selected "show all files" and attempted to include all of the paths (both media files and code paths) and the application hung. One of the media folders has something like 65,000 files in it. Do I even need to include this?
Regardless, it seems like doing "Include in Project" is taking forever, I've spent hours wrestling with it, trying to do one folder at a time...but often it's just hanging and I have to kill the process. Is there a faster way to deal with this? I tried editing the project file directly but including this media folder made the solution take absolutely forever to load.
Any general suggestions on how to approach this situation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我对本地文件也有同样的问题。我可能把 VS2010 杀死了 3 次,因为它似乎总是死机。然后,我重新创建了文件夹结构,但名称不正确,然后保存项目,使用文本编辑器打开它,并将名称更改为实际结构。最后使用“添加>现有项目”。虽然还是很慢,但速度快了一些。
I had the same problem with local files. I probably killed VS2010 three times since it would always seem to lock up. I then recreated the folder structure, but not with the correct name, then save the project, open it with a text editor and change the names to the actual structure. Finally use "Add > Existing Item". It's still slow, but a bit faster.
它不是挂着的——如果你把它留得足够长,它就会完成。但知道你的意思 - 我花了半天时间才将 dojo 纳入我的一个项目中。
您可能想尝试 SharpDevelop 将大型文件夹包含到您的项目中 - 它看起来快得多当被赋予这个任务时,比 Visual Studio 更重要。然后,您可以在 vs 中重新打开该项目。希望这会有所帮助。
It's not hanging - if you leave it long enough it will finish. Know what you mean though - it took half a day to include dojo on one of my projects.
You may want to try SharpDevelop to include large folders into your projects - it seems much, much faster than visual studio when given this task. You can then just re-open the project in vs. Hope this helps.
只要没有直接引用,您就不需要将媒体文件包含到项目中。
我敢打赌这些文件只是在运行时从过程中加载的。确保在源中完整搜索媒体文件夹。
恕我直言,只需将文件保存到本地存储,创建解决方案,然后添加所有资源和源。如果需要,您可以稍后将媒体文件再次复制到项目中。
as long there is no direct reference you don't need to include media files into the project.
I bet those files are just loaded runtime from a procedure. To make sure make a full search for the media folder in the sources.
Imho get just the files to a local store, create a solution, and then add all resources and sources. If needed you can copy the media files later again into the project.