[MonoDevelop] compiler error message about 'string'

=?GB2312?B?IkFuZHKopnMgRy4gQXJhZ29uZXNlcyI=?= knocte at gmail.com
Tue Apr 8 06:16:09 EDT 2008


ÖÓÒã wrote:
> version info:
> monodevelop-0.12-7.fc6
>  
>  
> The source
>  
> 1532 if (!String.IsNullOrEmpty(entry))
>  
>  
>  
> The message:
>  
> 1532 'string' does not contain a definition for 'IsNullOrEmpty'(CS0117)
>  
>  
> Also the strange is that, when I try to modify 'String' in the source to 
> 'string', the compiler still bump out the same message, but the line 
> number changed to 0 as,
>  
> 0 'string' does not contain a definition for 'IsNullOrEmpty'(CS0117)
>  
>  
> Another problem, when I compiler codes use CSharpCodeProvider, got 
> similar message as,
>  
> 'Microsoft CSharp.CSharpCodeProvider' does not contain a definition for 
> 'CompileAssemblyFromSource'(CS0117)
>  

You're probably using 2.0 in a project that targets the 1.1 runtime. Try
changing it right clicking on the project (solution pad) -> Options ->
General -> Runtime Options.

But the issue about the line number change may be a bug, so can you file
it on Bugzilla please?

Regards,

	Andres

-- 



More information about the Monodevelop-list mailing list