Issue with TFS build definition and WCF service in

2019-06-13 19:25发布


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条回答
做个烂人
2楼-- · 2019-06-13 19:39

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.

查看更多
登录 后发表回答