Issue with TFS build definition and WCF service in a Web Site “Project”

流过昼夜 提交于 2020-01-03 05:49:06

问题



I'm trying to create a TFS build definition for a WCF service I'm working on. When I go to set the "Items to Build\Projects to Build," I can't choose any .*proj or .sln file. The source for the service is under the "Visual Studio\WebSites\SERVICE_NAME" directory which does not have a .proj or .sln file.
I've been looking around for any material on the matter and nothing seems to be relevant to my situation.


回答1:


You have chosen to use a Web Site "project". That was a mistake.

Web sites are not projects. They therefore do not have project files and do not build.

I strongly recommend never using web sites for any serious work. Use a Web Application Project instead (File->New Project and choose "WCF Service Application").

Don't use them for web applications, either.



来源:https://stackoverflow.com/questions/7653412/issue-with-tfs-build-definition-and-wcf-service-in-a-web-site-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!