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

Metadata file 'System.Data.Odbc' could not be found #619

Closed
stevenkc opened this issue May 5, 2021 · 1 comment
Closed

Metadata file 'System.Data.Odbc' could not be found #619

stevenkc opened this issue May 5, 2021 · 1 comment

Comments

@stevenkc
Copy link

stevenkc commented May 5, 2021

#r "nuget: System.Data.Odbc, 5.0.0"
#r "System"
#r "System.Data"
#r "System.Data.Odbc"

try to add the System.Data.Odbc to dotnet script
got this message "Metadata file 'System.Data.Odbc' could not be found"

@filipw
Copy link
Member

filipw commented May 5, 2021

#r "System"
#r "System.Data"
#r "System.Data.Odbc"

This syntax loads a DLL from GAC, which is why the metadata cannot be found.
I assume this is not what you are trying to do, since you also reference System.Data.Odbc from nuget.

@filipw filipw closed this as completed May 5, 2021
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

2 participants