将整个项目移动到另一台PC [英] Move the whole project to another pc

查看:118
本文介绍了将整个项目移动到另一台PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#中编写了一个项目(包括数据库),我使用了实体框架6

最后一项技术,现在想把整个项目移到另一台PC上。



我应该关注哪些事项?或者告诉我如何在没有错误的情况下管理它!

请解释清楚,我是新的

Tanx

I've written a project in c# (database included) and I used entity framework 6
the last technology and now want to move the whole project to another pc.

what matters should I concern about? or tell me how can I manage that without error!
please explain clear ,I'm new
Tanx

推荐答案

根本没有任何顾虑,除了一个:你的代码本身。只需将所有源代码从一台计算机复制到另一台计算机的任何目录。您需要在该计算机上安装所有构建工具和所有依赖项,包括SQL Server和您使用的所有库。现在,看看:如果它不能立即起作用,那就意味着你没有真正的工作项目,即使它在第一台计算机上正常工作。



当你只复制到输出目录时,会发生类似的事情。您不需要Visual Studio,但是您需要在目标计算机上安装兼容的.NET版本,并安装所有依赖项。一切都应该马上工作。如果没有 - 见上文。



我将从一个简单明智的原则开始:按照它们出现的顺序考虑问题。凭借一些经验,您将开发出预测它们并在它们出现之前消除它们的能力。



-SA
There are no concerns at all, except just one: your code itself. Simply copy all source code from one computer to any directory of another computer. You need to have all the build tools and all dependencies to be installed on that computer, including SQL server and all libraries you use. Now, look: if it does not work immediately, it means that you don't really have a working project, even if it was "working" on the first computer.

The similar thing should happen when you copy just to output directory. You won't need Visual Studio, but you would need a compatible .NET version on the target computer, and all dependencies installed. Everything should work right away. If not — see above.

I would start with one simple and wise principle here: consider troubles in the order they appear. With some experience, you will develop the ability to predict them and eliminate them before they appear.

—SA


这篇关于将整个项目移动到另一台PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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