使用WCF构建库的TFS构建解决方案 [英] TFS Build of a Solution With WCF Build Library

查看:100
本文介绍了使用WCF构建库的TFS构建解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发布WCF服务库项目  (不是WCF应用程序) 使用Visual Studio 2010到共享文件夹会创建一个SVC文件,web.config文件并创建一个bin 文件夹,其中包含所需的程序集文件. (如果将路径设置为网络,这足以使wcf成为IIS的宿主).

Publishing a WCF Service Library project  (not a WCF application)  using Visual Studio 2010 to a shared folder creates an SVC file, web.config file and creates a bin folder with the needed assembly files .   ( This is enough to make the wcf to be IIS hosted if the path is set-up as a web) .  

如何使用TFSBuild.proj在TFS中实现此目标?在使用WCF服务库项目运行解决方案的TFS构建之后,没有 WCF服务库项目中的文件已复制到_PublishedWebsites文件夹中.需要设置TFSBuild.proj中的什么设置,以使TFS创建SVC文件,web.config文件和_PublishedWebsites文件夹下的bin文件夹

How can we achieve this in TFS using the TFSBuild.proj?   After running the TFS build of the solution with the WCF Service Library project ,   there were no files from the WCF Service Library project that were copied to the _PublishedWebsites  folder  What setting in TFSBuild.proj is needed to be set to have TFS create the SVC file, web.config file and the bin folder under the _PublishedWebsites folder the same way as the manual publish?

 

推荐答案

您好,我对TFS的构建了解不多.但是您不能将svc文件放在类库中.您需要将其放入Web应用程序中.在svc文件中,您可以将其指向使用类库中定义的协定/实现.
Hello, I don't know much about TFS build. But you cannot put svc files in a class library. You need to put it in the web application. Inside the svc file, you can point it to use the contract/implementation defined in the class library.


这篇关于使用WCF构建库的TFS构建解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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