views:

163

answers:

3

When I edit my web project references, I can't find the System.Web.MVC2 assembly in the GAC.

That's not what I expected since the Synaptic Package Manager reports that libmono-system-web-mvc2.0-cil package is installed properly.

A: 

Try installing it to the GAC manually.

Not all assemblies need to be in the GAC. There may be a reason the ASP.NET MVC assembly is not installed in the GAC (ease of deployment?)

Robert Harvey
It is in the GAC.. I can see it when I do gacutil -l. It just doesn't show up in MonoDevelop when it't time to make a reference to it.
RooSoft
A: 

Assemblies in MonoDevelop's Edit References list are not taken from the GAC. This is also true of VS and .NET. The GAC is only meant to be used at runtime, not compile time.

When targeting Mono, MonoDevelop uses a system called "pkgconfig" for discovering assemblies. When targeting .NET, it uses the same "Assembly Folders" keys in the registry that VS does.

Note that in MD Preferences you can also add additional folders to be searched for pkgconfig files or assemblies - this is intended as an easier alternative to properly installing them onto the system.

Since you use Ubuntu, which breaks Mono into many tiny packages, it's possible that Mono's pkgconfig file for the assembly has been split off into a separate -dev package, so you might try looking for that (though I'm not sure whether 2.6.7 included the pkgconfig file - maybe you'd need 2.8).

Also, MonoDevelop 2.6 does not yet exist - you probably mean 2.4.

mhutch
Right, I am using 2.4...
RooSoft
You probably also are right about pkgconfig.. but I have found out where to get the dll in the filesystem and I made a direct reference to it. Now it works perfectly!
RooSoft
A: 

You are probably missing the libmono-cil-dev package.

silk