locked
how to add system.servicemodel.configuration in .net core 3.1 RRS feed

All replies

  • configuration in .NET core is done differently:
    .NET Core run-time configuration settings

    but you still can use .config files without adding an assembly reference:
    using System.Configuration;
    
    ...
    
    string title = ConfigurationManager.AppSettings["title"];

    Tuesday, March 31, 2020 7:19 PM
  • Hi sam000123,

    Thank you for posting here.

    I note that System.ServiceModel.Configuration namespace is not supported in .NET Core.

    Here's a reference you can refer to:

    System.ServiceModel.Configuration option for .Net Standard 2.0

    Hope it could be helpful.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, April 1, 2020 5:58 AM
  • Hi

    I have added System.Configuration

    for that i need to add System.ServiceModel.Configuration but this support not there in .net core

    any suggestion would be helpful

    Thursday, April 2, 2020 6:54 AM
  • Hi sam000123,

    About the replacement of System.ServiceModel.Configuration in .NET Core, I suggest you ask in WCF forum for more help.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Friday, April 3, 2020 9:54 AM
  • Can you please share wcf forum details  as i am not able to get
    Friday, April 3, 2020 11:54 AM
  • Hi sam000123,

    Here is WCF forum:

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=wcf

    I hope this helps you find what you need.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, April 8, 2020 6:33 AM