什么是一个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