[Mono-list] Choosing library to compile against

Peter Hultqvist phq at silentorbit.com
Thu Feb 21 19:40:46 UTC 2013


On 2013-02-21 20:00, Francisco Figueiredo Jr. wrote:
>
> The projects I worked with only had a direct dependency to Npgsql2. I
> never played with a project which had an indirect dependency.
>
> Are you able to change the TestLib project properties when it is open
> inside TestReferences?
>
>
> Did you try add a reference to a fixed path to Npgsql2 assembly to
> both TestLib and TestReferences projects instead of pointing them to
> the Npgsql2 project? Or maybe just change TestLib reference to a fixed
> path to Npgsql2 assembly?

I tried a few things without success/same result:

- Change the project reference to a file reference.
- Changed both references in TestReferences so that they point to the
Npgsql.dll and TestLib.dll from the output directory of TestLib
- Change the version of Npgsql from 2 to 22 which I though would note be
mixed up with the gac

I'm not sure about direct/indirect dependencies, as I'm only using the
Monodevelop GUI where I can choose package(gac?), project(loaded in
solution) or file(link to a dll on disk). The dlls have been built with
local copy checked. I tried checking the "Specific version" for both
file references with no change in outcome.

When I changed the assembly name of the Npgsql project to NpgsqlX the
original error was replaced with a new one:
Program.cs(13,37): error CS0433: The imported type
`Npgsql.NpgsqlCommand' is defined multiple times
Program.cs(13,69): error CS0433: The imported type
`Npgsql.NpgsqlConnection' is defined multiple times

This is weird since the only references are to the NpgsqlX, System(GAC)
and TestLib.

As stated in my first post, if I remove the distribution installed
version of npgsql, all problems are gone.
rm -r /usr/lib/mono/*/Npgsql*

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130221/4ddc5dec/attachment.html>


More information about the Mono-list mailing list