Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a .svc file in Visual Studio

I have a file with an .svc extension. First question is what is a .svc file? The second question is how do I create one of these from the Visual Studio add item menu? I've tried all the most obvious options but none of them create a .svc file.

Thanks,

Sachin

like image 212
Sachin Kainth Avatar asked Aug 01 '12 13:08

Sachin Kainth


People also ask

How do I import a .SVC file into Visual Studio?

In my experience, an SVC file is a WCF service - create a WCF application from the projects list and then do an "Add new item" and add a new WCF service. For it to do anything it will need the appropriate bindings and endpoints configuring and wiring up - before it can be called. Show activity on this post.

How do I create a .SVC file?

To Create your . svc file : Right Click your Project > Add New Item> Select Text File > Give Service Name with Extension . svc.


1 Answers

In my experience, an SVC file is a WCF service - create a WCF application from the projects list and then do an "Add new item" and add a new WCF service.

For it to do anything it will need the appropriate bindings and endpoints configuring and wiring up - before it can be called.

See also: WCF service. Where to add . svc file

like image 156
SpaceBison Avatar answered Oct 01 '22 02:10

SpaceBison