[MonoDevelop] Building Monodevelop under Monodevelop in Windows
Michael Hutchinson
m.j.hutchinson at gmail.com
Wed Aug 8 01:06:44 UTC 2012
On 7 August 2012 15:03, Jay Bazuzi <jay at bazuzi.com> wrote:
> I didn't realize that. I was following the instructions at
> http://monodevelop.com/Developers/Building_MonoDevelop, and it doesn't
> mention setting the target platform. Who can I contact about updating that
> page?
>
> So, I switched runtime to Microsoft .NET, and got a build error because it
> couldn't find the reference Mono.Posix. What I found was that closing &
> reopening the solution after switching runtime to Microsoft .NET caused it
> to find Mono.Posix correctly. Is this a bug in MonoDevelop?
>
> With that out of the way, the build proceeded further, but then failed with:
>
>>
>> c:\Users\Jay\GitHub\monodevelop\main\src\core\MonoDevelop.Projects.Formats.MSBuild\MonoDevelop.Projects.Formats.MSBuild\ProjectBuilder.cs(6,6):
>> Error CS0246: The type or namespace name 'var' could not be found (are you
>> missing a using directive or an assembly reference?) (CS0246)
>> (MonoDevelop.Projects.Formats.MSBuild.v2.0)
>
>
> That's weird - is it using an old version of the compiler? What is going on?
It's a bug in the MonoDevelop build engine. On .NET it uses the
version of csc from the target framework - whereas MSBuild uses the
csc matching the MSBuild. For example, a VS2010 project should always
uses csc 4.0, which supports "var", even if it targets the 2.0
framework.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Monodevelop-list
mailing list