如何在Mono中启动WCF项目/解决方案 [英] How to start a wcf project/solution in Mono

查看:82
本文介绍了如何在Mono中启动WCF项目/解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何在Mono中启动wcf应用程序.它在解决方案/类别中没有wcf.

我知道它现在支持它,但是我找不到任何方法来创建它.我正在查看IDE,如何创建wcf项目?

I can''t figure out how to start a wcf application in Mono. It does not have wcf in the solutions/categories.

I know that it supports it now, but I can''t find any way to create one. I''m looking at the IDE, how do I make a wcf project?

推荐答案

您在说什么叫做项目模板.是的,在Visual Studio中有一个模板"WCF服务",但是为什么您认为自己确实需要它呢?仅需要模板来编写一些常用应用程序的框架,以避免重复某些工作,这些工作在许多情况下应重复多次.模板实际上是一个处于初始阶段的项目,再加上一些重命名文件,一些类的名称和名称空间所需的较小的重构,这些重构是根据开发人员在创建新项目时输入的一小部分参数进行的.

每个项目都可以在没有模板的情况下从空项目开始,而无需创建模板.实际上,.NET项目没有这样的模板"Empty Project",但是您可以使用任何模板:从项目树中删除所有冗余的引用程序集和一些源代码节点,然后添加您所需的项目类型.您甚至可以保存源代码以供以后重用.稍后它可以起到缺少模板的作用.

如果您不知道如何创建WCF服务,只需学习一下,也许可以找到一些代码示例.您可以使用Visual Studio从模板创建代码示例(或要求某人这样做),然后使用代码查看项目的需求.请记住,如果您在Windows以外的系统上的Mono上使用此代码,则其中的某些部分将不适用.例如,您在Linux上没有Windows服务. :-)

—SA
What are you talking is called Project Template. Yes, in Visual Studio there is a template "WCF Service" but why would you think you really need it? Templates are only needed to write a skeleton of some frequently used applications to avoid repeating some work which should be repeated many times on many cases. A template is actually some project at the initial stage plus some minor refactoring needed to renamed files, names of some classes and namespaces according to a small set of parameters entered by a developers at the moment of creation of a new project.

Each and every project can be created without a template, starting from scratch, from an empty project. Actually, there is no such template "Empty Project" for .NET projects, but you can use any: remove all redundant referenced assemblies and some of source code nodes from the project tree, and later add what you need for your type of project. You can even save your source code to reuse later. It can play the role of missing template later on.

If you don''t know how to create WCF Service, just learn it, perhaps find some code sample. You can create a code sample from the template using Visual Studio (or ask someone to do so) and use the code to see what the project needs. Remember that if you are using this code on Mono on the system other than Windows, some part of it could not be applicable. For example, you don''t have Windows Services on Linux. :-)

—SA


这篇关于如何在Mono中启动WCF项目/解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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