Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must System.Configuration.ConfigurationManager be manually installed? #358

Open
cmeeren opened this issue Sep 30, 2019 · 0 comments
Open

Comments

@cmeeren
Copy link
Contributor

cmeeren commented Sep 30, 2019

In a netstandard2.0 project I have this:

new SqlCommandProvider<const(SqlFile<"myfile.sql">.Text), "name=MyConnStr">()

When I run the app (ASP.NET Core targeting net472) and make a DB query, I get an exception saying "Could not load file or assembly 'System.Configuration.ConfigurationManager`.

The problem goes away if I manually install the System.Configuration.ConfigurationManager NuGet package, or if I use a complete connection string instead of name=MyConnStr.

Is manual installation of System.Configuration.ConfigurationManager required, or is this an issue with SqlClient? Perhaps it's related to #349 (comment)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant