OraKLE Kings

OraKLE Kings

  • NA
  • 3
  • 2k

Add datacontracts without recompiling the WCF project

Jul 5 2011 10:51 AM
I am currently developing a WCF service that will evolve over time to include new DTOs. I am currently using MEF withing the service implementation to export the webservice object. I have the WCF service project and the datacontracts' project within the same solution. For now, both the projects are compiled under one solution.
Essentially what I want to do is to have a scheme that I can incorporate into the WCF service project so that I can add new datacontracts in future. This scheme does not have to use MEF. These new datacontracts are to be developed in a different solution but under the same namespace (or not). After compilation, I would only need to drop the new datacontracts' assembly in the ..\bin folder and restart the service. The service would then pickup the new datacontracts so that they can be spewed into the WSDL.