Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can't figure out how to start a wcf application in Mono. It does not have wcf in the solutions/categories.

I know that it supports it now, but I can't find any way to create one. I'm looking at the IDE, how do I make a wcf project?
Posted
Comments
Sergey Alexandrovich Kryukov 23-Jan-12 13:18pm    
Do you use MonoDevelop?
--SA
loctrice 23-Jan-12 13:37pm    
Yes, sorry. I said mono where I should have said MonoDevelop

1 solution

What are you talking is called Project Template. Yes, in Visual Studio there is a template "WCF Service" but why would you think you really need it? Templates are only needed to write a skeleton of some frequently used applications to avoid repeating some work which should be repeated many times on many cases. A template is actually some project at the initial stage plus some minor refactoring needed to renamed files, names of some classes and namespaces according to a small set of parameters entered by a developers at the moment of creation of a new project.

Each and every project can be created without a template, starting from scratch, from an empty project. Actually, there is no such template "Empty Project" for .NET projects, but you can use any: remove all redundant referenced assemblies and some of source code nodes from the project tree, and later add what you need for your type of project. You can even save your source code to reuse later. It can play the role of missing template later on.

If you don't know how to create WCF Service, just learn it, perhaps find some code sample. You can create a code sample from the template using Visual Studio (or ask someone to do so) and use the code to see what the project needs. Remember that if you are using this code on Mono on the system other than Windows, some part of it could not be applicable. For example, you don't have Windows Services on Linux. :-)

—SA
 
Share this answer
 
Comments
loctrice 23-Jan-12 13:41pm    
You are correct, the template is what I meant. I don't think I need it, I just don't know another way to do it. This answer does address my problem/question perfectly. I will look for some sample code now that I have a better question for uncle google
Sergey Alexandrovich Kryukov 23-Jan-12 13:47pm    
I'm glad it was helpful.
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900