如何使用来自客户机的Windows服务构建和发布.sln文件? [英] how can the .sln file is builded and published using windows service from client machine?

查看:66
本文介绍了如何使用来自客户机的Windows服务构建和发布.sln文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何构建.sln文件

并使用来自客户端计算机的Windows服务发布?



谢谢

how can the .sln file is builded
and published using windows service from client machine?

Thanks

推荐答案

不,不是.sln文件,而是包含源代码的所有其他文件的解决方案文件:带有一个或多个项目文件和源代码的所有文件。



没有已发布这样的概念(也许你可以定义它);并且不清楚从客户机使用Windows服务是什么意思,但当然可以创建一个Windows服务,它可以构建客户端提供的解决方案(同样,完整的所有源代码);它可以是网络服务(例如,由服务应用程序自托管的WCF服务,但也可以是其他任何东西)或本地服务。



此外,如果解决方案受纯.NET项目的限制,则不需要Visual Studio;除了服务主机上安装的.NET之外什么也不需要。这是因为C#和VB.NET编译器总是带有完整的.NET安装,以及MSBuild.exe。在所有情况下,可以通过MSBuild.exe构建解决方案:

http:/ /msdn.microsoft.com/en-us/library/0k6kkbsd.aspx [ ^ ],

http ://msdn.microsoft.com/en-us/library/dd393574.aspx [ ^ ]。



如果你想在互联网上开发和发布这样的东西,请查看合法性这样的事情。



-SA
No, not ".sln" file, but a solution file with all other files of the source code: with one or more project files and all the files of the source code.

There is no such concept as "published" (perhaps you can define it); and it's not clear what do you mean by "using Windows Service from client machine", but of course it is possible to create a Windows Service which would build solutions (again, all the source code in its entirety) supplied by a client; it can be a network service (for example, WCF service self-hosted by the service application, but it can be anything else) or a local service.

Moreover, if the solutions are limited by pure .NET projects, Visual Studio is not needed; nothing except .NET installed on the service host is needed. This is because C# and VB.NET compilers always come with the full .NET installation, as well as MSBuild.exe. In all cases, solution can be built through MSBuild.exe:
http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx[^],
http://msdn.microsoft.com/en-us/library/dd393574.aspx[^].

If you want to develop and publish such thing on Internet, check up the legality of such thing.

—SA


这篇关于如何使用来自客户机的Windows服务构建和发布.sln文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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