You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However when running "t4 OrmLite.Poco.tt" from the command line, I get the following error:
OrmLite.Core.ttinclude(446,20): ERROR: The type name 'SqlClientFactory' could not be found in the namespace 'System.Data.SqlClient'. This type has been forwarded to assembly 'System.Data.SqlClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
Using t4 OrmLite.Poco.tt -r System.Data also does not work.
It's like t4 is not picking up any nuget dependencies.
Any idea how to get this working so I can use a DbProviderFactory?
Other errors I get are all related to the System.Data.SqlClient (new SqlConnection()):
OrmLite.Core.ttinclude(756,30): ERROR: The type name 'SqlConnection' could not be found in the namespace 'System.Data.SqlClient'. This type has been forwarded to assembly 'System.Data.SqlClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
Everything works when running the tt file in VS. I need this tt file to work in VS as well as cross platform with this tool (like on linux).
The text was updated successfully, but these errors were encountered:
dylanvdmerwe
changed the title
The type name 'SqlClientFactory' could not be found in the namespace 'System.Data.SqlClient'
The type name 'SqlClientFactory' could not be found in the namespace 'System.Data.SqlClient' - Nuget references?
Jan 2, 2023
I am trying to create a
DbProviderFactory
like this:However when running "t4 OrmLite.Poco.tt" from the command line, I get the following error:
Using
t4 OrmLite.Poco.tt -r System.Data
also does not work.This is what I have included in a ttinclude file:
My project file is relatively simple as well:
It's like
t4
is not picking up any nuget dependencies.Any idea how to get this working so I can use a
DbProviderFactory
?Other errors I get are all related to the System.Data.SqlClient (
new SqlConnection()
):Everything works when running the tt file in VS. I need this tt file to work in VS as well as cross platform with this tool (like on linux).
The text was updated successfully, but these errors were encountered: