[MonoDevelop] C# 4.0 Support

Dale Ragan dale.ragan at sinesignal.com
Sat Feb 6 01:02:50 EST 2010


OK, that was part of the problem.  I figured since I have my default
solution, Edit -> Preferences -> Load/Save -> MSBuild (Visual Studio 2010)
and the default runtime set to Mono 2.7, that it would create the projects
with the runtime version of Mono/.NET 4.0.  Instead, it was creating the
project with Mono/.NET 3.5.

That fixed finding the namespace System.Dynamic, but now it can't find
System.Dynamic.DynamicObject.  Running the dmcs command on the terminal
gives the same error:

/opt/mono/bin/dmcs /noconfig
"/out:/home/dragan/Projects/Test/DynamicTest/bin/Debug/DynamicTest.exe"
"/r:System.dll" "/r:System.Dynamic.dll" /nologo /warn:4 /debug:+ /debug:full
/optimize- /codepage:utf8 /platform:x86 "/define:DEBUG" 
/main:DynamicTest.MainClass /t:exe
"/home/dragan/Projects/Test/DynamicTest/Main.cs"
"/home/dragan/Projects/Test/DynamicTest/AssemblyInfo.cs"

I can compile with this command at the terminal though:

dmcs AssemblyInfo.cs Main.cs -t:exe -out:DynamicTest.exe

I've uploaded the Mono Project for inspection:
http://old.nabble.com/file/p27477302/DynamicTest.tar.bz2 DynamicTest.tar.bz2 


A.M. Abdelaziz wrote:
> 
> are u sure u have selected "Mono/ .NET 4" as the "Runtime Version"?
> Project -> <name> Options -> Build -> General -> Runtime Version
> 
> On Sat, Feb 6, 2010 at 6:14 AM, Dale Ragan
> <dale.ragan at sinesignal.com>wrote:
> 
>>
>>
>> Dale Ragan wrote:
>> >
>> > Does MonoDevelop use the new dmcs compiler?  I have a parallel
>> environment
>> > all setup from svn of Mono with 4.0 enabled and a build of MonoDevelop
>> > from svn also.  In MonoDevelop, I have the correct Mono runtime
>> (Version
>> > 2.7) selected, but when building a project that uses the new dynamic
>> > support.  I receive errors indicating that dynamic can't be resolved,
>> but
>> > compiling myself with dmcs works fine from the terminal.
>> >
>> > I didn't want to post a bug, until I posted here first.
>> >
>> > Thanks,
>> >
>> > Dale
>> >
>>
>> After arriving home tonight, I decided to do a little more investigating.
>> When building, in MonoDevelop, I selected Build Output from the View menu
>> and sure enough, it's using the gmcs compiler instead of dmcs.  I have
>> attached two screenshots to show the .NET Runtime selected in
>> Edit->Preferences and also the build output showing that gmcs is being
>> used.
>> I hope this extra information helps.  I would look into it in the code,
>> but
>> I have no idea where to even start.
>>
>> http://old.nabble.com/file/p27476963/MonoDevelopRuntimeSelection.png
>> MonoDevelopRuntimeSelection.png
>> http://old.nabble.com/file/p27476963/BuildOutput.png BuildOutput.png
>>
>> --
>> View this message in context:
>> http://old.nabble.com/C--4.0-Support-tp27473048p27476963.html
>> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
> 
> 
> 
> -- 
> A.M. Abdelaziz
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
> 
> 

-- 
View this message in context: http://old.nabble.com/C--4.0-Support-tp27473048p27477302.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.



More information about the Monodevelop-list mailing list