Ahh, that is interesting - I haven't tried building an MVC4 site with xbuild. I build mine with msbuild on Windows, and then deploy it to a Linux server.
Maybe it's worth posting the full xbuild output? On Tue, Feb 5, 2013 at 7:44 PM, Alberto León <leontis...@gmail.com> wrote: > The error with targetFramork isn't in running time, is building the MVC4 > solution with xbuild > > I think there is new attribute for the compile and the httpruntime > elements that is not supported in xbuild. > > Thanks for the advice about System.Data.Entity > > > > > 2013/2/5 Daniel Lo Nigro <li...@dan.cx> > >> Hey there, >> >> 1. System.Data.Entity can't be found >> >> Mono doesn't support Entity Framework 4 or 5, it only supports the alpha >> version of Entity Framework 6. If you are using Entity Framework, you might >> not have much luck with Mono. Entity Framework 6 is still an alpha version >> and is not yet ready for production. If you are not using Entity Framework >> in your application, remove all references to it (your app should not >> reference System.Data.Entity or EntityFramework, and it should not be >> mentioned in the Web.config). >> >> 2. I had to remove the attribute targetFramework from compile element and >>> from httpRuntime in Web.Config >> >> This generally happens when you're trying to run an ASP.NET 4.0 site >> under ASP.NET 2.0/3.5. Ensure you're using ASP.NET 4.0 (xsp4 if you're >> using XSP, fastcgi-mono-server4 if you're using >> FastCGI, mod-mono-server4 if you're using Apache + mod_mono). You should be >> able to see the ASP.NET version at the bottom of error pages, it should >> look like this: >> >> Version Information: 3.0.3 (tarball Monday 28 January 18:14:39 EST 2013); >> *ASP.NET Version: 4.0.30319.17020* >> >> >> On Tue, Feb 5, 2013 at 7:34 PM, Alberto León <leontis...@gmail.com>wrote: >> >>> I'm porting a MVC4 application to Mono 3.0.3 >>> >>> I have two importants questions: >>> 1. System.Data.Entity can't be found >>> 2. I had to remove the attribute targetFramework from compile element >>> and from httpRuntime in Web.Config >>> >>> Where is or how I can get System.Data.Entity? >>> >>> And what happen with targetFramework? Is a but or a feature request to >>> xbuild? >>> >>> Thanks, >>> >>> -- >>> https://twitter.com/AlbertCSharpMan >>> http://stackoverflow.com/users/690958/alberto-leon >>> >>> _______________________________________________ >>> Mono-list maillist - Mono-list@lists.ximian.com >>> http://lists.ximian.com/mailman/listinfo/mono-list >>> >>> >> > > > -- > https://twitter.com/AlbertCSharpMan > http://stackoverflow.com/users/690958/alberto-leon >
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list