locked
Configure WCF to Publish DLL which is named Shared Data RRS feed

  • Question

  • User44088339 posted

    I want to ask you something. last year i worked company and 4 team working one Project.  when they publish web service, Data contract dlls were being loading Shared Data. Now when i was published all data contract dlls is not load in shared data. i dont remember exatly. when then copy shared dll's to MVC bin all dlls update automaticaly.  I think when i publish my Data contract as shared data everything will be done.  I'm sorry for not remembering what this team did. How can i configure web service for publish data contract  as Shared Data. 

    Saturday, September 30, 2017 12:01 PM

All replies

  • User1120430333 posted

    The only thing that could have been happening here is that a classlib project called SharedData was created and the datacontract classes were put into it so that objects could shared across projects.

    Saturday, September 30, 2017 1:12 PM
  • User44088339 posted

    thanks for your your reply. I search classlib Project SharedData keyword in Google and I find an article which is exlain  detailing this subject.  He is used Package Reference (NuGet) technique for share Class Library. The other methods is commonly used technique. These methods are Project Reference and DLL Reference. (NuGet) technique is best for me because when i add my shared library by using (NuGet) technique Project is automatically recognised my shared dlls. 

    You can find this article in Google. Write "Creating your first shared library in .NET Core" keyword and search.  Site name is devtrends and articles written by Paul Hiles. 

    I will try this technique on Monday. 

    Saturday, September 30, 2017 3:47 PM
  • User1120430333 posted

    thanks for your your reply. I search classlib Project SharedData keyword in Google and I find an article which is exlain  detailing this subject.  He is used Package Reference (NuGet) technique for share Class Library. The other methods is commonly used technique. These methods are Project Reference and DLL Reference. (NuGet) technique is best for me because when i add my shared library by using (NuGet) technique Project is automatically recognised my shared dlls. 

    You can find this article in Google. Write "Creating your first shared library in .NET Core" keyword and search.  Site name is devtrends and articles written by Paul Hiles. 

    I will try this technique on Monday. 

    I call the project Entities using DTO(s) as datacontracts following the DTO pattern.

    https://en.wikipedia.org/wiki/Data_transfer_object

    https://www.codeproject.com/Articles/1050468/Data-Transfer-Object-Design-Pattern-in-Csharp

    Sunday, October 1, 2017 12:24 PM