I have a WPF project that contains a app.config
containing the consection string and tb I have a Date layer of type ClassLibrary .dot net Standard on which to create the Migrations folder.
When I give an "Add-Migration Start" the system is not able to access my app.config and get the connection string to create the Migration.
This error is appearing:
"Could not load file or assembly 'System.Configuration.ConfigurationManager, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = cc7b13ffcd2ddd51 'or one of your dependencies. The system can not find the file specified. "
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<connectionStrings>
<add name="SistemaComercial" connectionString="Data Source=.\sqlexpress;Initial Catalog=SistemaComercial;Persist Security Info=True;User ID=sa;Password=123" providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>