[Mono-bugs] [Bug 668497] CodeDomProvider.CompileAssemblyFromFile returning an error regarding Info.plist

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 14 19:33:08 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=668497

https://bugzilla.novell.com/show_bug.cgi?id=668497#c3


--- Comment #3 from Christian Heusinger <dclone2 at web.de> 2011-02-15 00:33:07 UTC ---
This seems to be related:

Process.Start("/usr/bin/mono"); from within MonoMac process gives
"mono[66177:903] No Info.plist file in application bundle or no
NSPrincipalClass in the Info.plist file, exiting".

Reproducible: Always

Steps to Reproduce:
1. Create a new MonoMac application
2. Execute Process.Start("/usr/bin/mono"); (anywhere after
NSApplication.Main())

This extends to starting a Mono app from within a MonoMac app.
Process.Start(Path.Combine(NSBundle.MainBundle.ResourcePath,"SomeNetApp.exe"));
will fail with same error.

Any workaround very much appreciated!


(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
> AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
> 
> When attempting to use a CSharpCodeProvider targeting v3.5, the
> CompileAssemblyFromFile method is returning a rather peculiar error of
> "mono[416:60f] No Info.plist file in application bundle or no NSPrincipalClass
> in the Info.plist file, exiting".
> I have ran the same code in a standard Mono console application and I do not
> receive any error when compiling.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Create a new MonoMac application
> 2. Create a CodeDomProvider via CSharpCodeProvider with "CompilerVersion" set
> to "v3.5"
> 3. Add some reference assemblies
> 4. Execute the CompileAssemblyFromFile or CompileAssemblyFromSource
> Actual Results:  
> Compiler error with the message...
> Line 0 - 2011-01-31 18:32:55.760 mono[709:60f] No Info.plist file in
> application bundle or no NSPrincipalClass in the Info.plist file, exiting
> 
> Expected Results:  
> Error free compilation of my assembly source code

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list