How to include reference to assembly in ASP.NET Core project

前端 未结 2 651
我寻月下人不归
我寻月下人不归 2021-02-19 09:50

I have this line

string sConnectionString = ConfigurationManager.ConnectionStrings[\"Hangfire\"].ConnectionString;

And it requires to include

2条回答
  •  梦毁少年i
    2021-02-19 10:06

    @Dimi Right Click on References folder -> Add References -> Search configuration -> check on System.Configuration -> Click on ok.

    then add Namespaces on your .cs file i.e

    using System.Configuration;

提交回复
热议问题