.Net 4.0 problem

156 views
Skip to first unread message

ymaka...@gmail.com

unread,
Apr 29, 2018, 3:31:29 AM4/29/18
to firebird-net-provider

Hello,

 

I am new to firebird.

I have a .Net 4 project  and I need to use the respective Firebird.

I downloaded the “FirebirdSql.Data.FirebirdClient-5.12.1.0-NET40.7z”  and I am referencing the dll.

When I build my project I get the following errors :

 

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1988,5): warning MSB3268: The primary reference "FirebirdSql.Data.FirebirdClient" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "FirebirdSql.Data.FirebirdClient" or retarget your application to a framework version which contains "System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

 

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1988,5): warning MSB3268: The primary reference "FirebirdSql.Data.FirebirdClient" could not be resolved because it has an indirect dependency on the framework assembly "System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "FirebirdSql.Data.FirebirdClient" or retarget your application to a framework version which contains "System.Threading.Tasks, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

 

1>C:\SWTests\Firebird\WindowsFormsApp1\WindowsFormsApp1\Form1.cs(1,7,1,18): error CS0246: The type or namespace name 'FirebirdSql' could not be found (are you missing a using directive or an assembly reference?)

 

When I switch to .Net 4.5 it works.

 

Any help will be very much appreciated.

Jiří Činčura

unread,
Apr 29, 2018, 3:32:03 AM4/29/18
to firebird-n...@googlegroups.com
Install it from NuGet.

--
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/
> --
> You received this message because you are subscribed to the Google
> Groups "firebird-net-provider" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to firebird-net-pro...@googlegroups.com.
> To post to this group, send email to firebird-net-
> prov...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/firebird-net-provider/f7c50fef-aa11-4c2d-8986-22a5c617631a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

ymaka...@gmail.com

unread,
May 8, 2018, 11:07:34 AM5/8/18
to firebird-net-provider
Yes it worked.
Thank you
Reply all
Reply to author
Forward
0 new messages