What is the difference between a WCF Service Application and a WCF Service Library?

后端 未结 2 1352
南方客
南方客 2020-11-28 02:57

I am developing a WCF web service and I used the WCF Service Application template to do that.

Does creating a \"WCF Service Application\" fulfill this requirement? W

2条回答
  •  隐瞒了意图╮
    2020-11-28 03:25

    If all you have is the one project I see only added complexity if you separate for the heck of it. I used a library when I had some particular use cases where I had to host in both a windows service and in IIS.

    For IIS you you can move the classes and interfaces to a library but keep your .SVC files in the web project. You must edit the .SVC files to point to the properly qualified classes.

提交回复
热议问题