Setup MSI Project for WCF Web Service
I'm working with a co-worker on this, will try on my own machine shortly, but wanted to get the question posted quickly. I've also been Googling for step-by-step "how to setup for WCF 开发者_运维知识库service" and not finding anything on target. I've done it before at a prior company, but forgetting the details now.
Are .SVC files automatically included in the "Primary Output" of another project?
We did a "Add" "project output" then pointed to WCF web service project. The .dlls all show up, but not the .SVC files.- Should the SVC files be included with the primary output? Or does "primary output" just refers to the Debug/Bin output?
- Can we deploy without the SVC files? I'm thinking we need the SVC not the C#, show I don't want to include "all source files".
- Do we have to add the SVC files manually?
- Likewise, do we have to add the web.config manually?
Using VS2010
After a few minutes of experimenting, I think it is "Content Files" that includes the .svcs and the .configs.
So is that the best practice, to include the following: 1) Primary output 2) Content files?
Primary output is pretty much the debug (or release)/bin. So if yo use a web deployment project you can tell it to put your target's primary output in the bin and then one level up add the .svc, web.config, and global.asax by hand.
On possible issue though is that if you do this in source control using TFS, it will try to put you output dlls into source control, which can cause all sorts 'o' fun.
Good Luck.
精彩评论