[MonoDevelop] MonoDevelop and VisualStudio2005

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Jan 5 04:14:28 EST 2009


On Mon, Jan 5, 2009 at 4:01 AM, Christian Hoff <christian_hoff at gmx.net> wrote:
> innominate wrote:
>> I would like to set up my project such that I can open the same solution file
>> in MonoDevelop or VisualStudio2005 and have everything work just fine but I
>> am running into a problem with References.
>>
>> in MonoDevelop references to gtk & mono dlls (gtk-sharp, gdk-sharp,
>> Mono.Posix, etc) look like this in the csproj file:
>> <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral,
>> PublicKeyToken=35e10195dab3c99f" />
>> theres no full path to the dll (It somehow just knows where it is, How??)
>>
> .net and Mono have a global assembly cache. Use the gacutil tool modify
> the GAC. Keep in mind that Mono and MS .net use different assembly
> caches which is probably why VS shows the reference as missing. If you
> want to use gtk-sharp from MS.Net use the Gtk# installer for MS.net
> avaible on the mono homepage. Keep in mind that the installer does not
> work perfectly on windows Vista, see the Gtk# bugs for details.

The GAC is not used for resolving assemblies for compilation; it's
only used at runtime.

VS resolves these assemblies from paths registered in the registry, as
explained here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;306149
http://p3net.mvps.org/Topics/Basics/IntegratingGACWithVS.aspx
http://weblogs.asp.net/jdanforth/archive/2003/12/16/43841.aspx

MD uses pkg-config to resolve the assemblies.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list