Using Firebird.NETClient with Client-Only Framework subset
----------------------------------------------------------

                 Key: DNET-236
                 URL: http://tracker.firebirdsql.org/browse/DNET-236
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 2.5.0
         Environment: VS2008, .NET3.5SP1 WinFormsProject with "Client-only 
Framework subset" switched ON
            Reporter: Robert Kindl
            Assignee: Jiri Cincura
            Priority: Blocker


When I reference FirebirdSql.Data.FirebirdClient.dll in "Client-only" project I 
get following warnings:
Warning 1 The referenced assembly "FirebirdSql.Data.FirebirdClient.dll" has a 
dependency on "System.Data.Entity, Version=3.5.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089" which is not listed as part of the "Client" 
TargetFrameworkSubset. If this dependent reference is required, you may get 
compilation errors.

Warning 2 The referenced assembly "FirebirdSql.Data.FirebirdClient.dll" has a 
dependency on "System.Web, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a" which is not listed as part of the "Client" 
TargetFrameworkSubset. If this dependent reference is required, you may get 
compilation errors.

Suggested solution for Warning 1
Provide version with conditional symbol ENTITY_FRAMEWORK switched off.

Suggested solution for Warning 2
Provide version with newly introduced conditional symbol SYSTEM_WEB switched 
off, which could be used in FbConnectionInternal.cs like this:
#if (SYSTEM_WEB)
            // showing ApplicationPhysicalPath may be wrong because of 
connection pooling; better idea?
            if (System.Web.Hosting.HostingEnvironment.IsHosted)
                return 
System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath;
            else
#endif
                return Process.GetCurrentProcess().MainModule.FileName;

Maybe it will be wise to create new new conditional symbol CLIENTONLY_FRAMEWORK.

In FirebirdSql.Data.FirebirdClient.csproj there is also reference to 
"System.Design" which is not included in "Client-Only" subset too. But this 
assembly is not used for anything, so it doesn't generate warning as long as 
it's not used.

In all cases I would suggest to pre-build all these version as binaries, 
because many people are afraid of building from source code. It's because they 
see it as unofficial and unsupported. And it's also harder to mantain (it's 
much easier to copy one new .dll than rebuilding project with some "custom 
conditional symbols").

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to