WCF服务库VS类库项目类型 [英] WCF Service Library vs Class Library project types

查看:609
本文介绍了WCF服务库VS类库项目类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是一个WCF服务库做一个普通的类库不?

What does a WCF Service Library do that a regular class library doesn't?

编辑:我贴出我自己的答案。我缺少什么?难道他们根本都只有类库有一些模板类添加?

I posted my own answer. Am I missing anything? Are they fundamentally both just class libraries with a few template classes added?

推荐答案

我创建了两个比较。这是我发现了什么。

I created both and compared. This is what I found.

WCF服务库

  • 添加引用 System.Runtime.Serialization System.ServiceModel 。不包含引用 System.Data.DataSetExtensions 作为类库一样。
  • 包含示例服务类 IService1 的CompositeType 服务1
  • 添加的app.config用的wsHttpBinding和mexHttpBinding服务端点
  • 添加 /客户端:WcfTestClient.exe在项目属性调试命令行选项
  • WCF选项选项卡在项目属性。此选项卡包含一个选项,以启动在同一个解决方案,调试的另一个项目时,WCF服务主机
  • 使签署的ClickOnce清单在项目属性的签名标签选项。此选项的类库中禁用
  • adds references to System.Runtime.Serialization and System.ServiceModel. does not contain a reference to System.Data.DataSetExtensions as the Class Library does.
  • contains sample service classes IService1, CompositeType and Service1
  • adds app.config with a wsHttpBinding and a mexHttpBinding service endpoint
  • adds /client:"WcfTestClient.exe" as a debug command line option in the project properties
  • adds a WCF Options tab in the project properties. This tab contains an option to start a WCF service host when debugging another project in the same solution
  • enables a Sign the ClickOnce manifests option in the Signing tab of the project properties. this option is disabled in the Class Library

这篇关于WCF服务库VS类库项目类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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