如何在客户计算机上部署项目?
我使用 Visual Studio 构建了一个 .net 应用程序。 该应用程序使用C# 进行编码,并使用SQLSERVER 来实现数据库目的(存储、检索和操作数据)。
请告诉我如何将此申请交给客户?
我必须在客户端计算机上安装.net Framework吗? 我需要在客户端计算机上安装完整的sqlserver才能访问数据库吗? 或者 将 .exe 文件提供给客户端就可以解决目的..?
请帮忙...
I have a built a .net application using visual studio.
This application is coded in C# and uses SQLSERVER for database purposes(storage,retrieval and manipulation of data).
Please tell me how to give this application to client?
Do I have to install .net framework on client's computer..?
Do I need to install complete sqlserver on client's computer to access database?
or
giving the .exe file to client would be okay to solve the purpose..?
help please...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
客户端需要 .Net、SQl-Server 以及来自 \Source\bin\Release 的 .exe 和 .dll。
client needs .Net, SQl-Server and the .exe and .dlls from \Source\bin\Release.
您的应用程序有多个依赖项 - .net 框架,并且需要 SQL Server 来访问其数据。
您需要在他们的计算机上安装框架,确保他们有一个 SQL 服务器,其中包含您在其上设置的数据库和数据(应用程序可以访问)以及您创建的 exe。
查看安装项目 - 这些项目将允许您确保应用程序的所有先决条件(ddls 和框架)均已安装(他们甚至可能会安装它们)。它们对 SQL Server 端没有帮助 - 您仍然需要创建脚本来生成数据库及其中的初始数据。
Your application has several dependencies - the .net framework and it will need a SQL Server to access its data.
You will need to have both the framework setup on their computer, make sure they have a SQL server with the database and data you have setup on it (which is accessible to the application) and the exe you have created.
Look into setup projects - these will allow you to make sure that all prerequisites for you application (ddls and framework) are installed (and they may even install them). They will not help with the SQL Server side - you will still need to create scripts that generate you database and the initial data in it.
您可以使用 Visual Studio 的 ClickOnce 部署方法,它预内置于 Visual Studio 的大多数版本中,更不用说它是免费的。
在 Visual Studio 中,只需“发布”您的项目即可。您将获得有关如何部署的选项(通过网络、独立等)。安装程序会自动确保客户端拥有正确版本的 .NET Framework,这也很方便。不过,我不确定 SQLServer,您必须自己测试该理论。
You could use Visual Studio's ClickOnce deployment method, which comes pre-built into most every version of Visual Studio, not to mention it's free.
In Visual Studio, simply "Publish" your project. You'll be given options on how you'd like to deploy (via web, standalone, etc). The installer automatically makes sure the client has the correct version of the .NET Framework, as well, which is handy. I'm not sure about SQLServer, though, you'd have to test that theory out yourself.
以下步骤可能会有所帮助:
the following steps might help: