[Mono-bugs] [Bug 81028][Wis] New - foo.resx is passed to compiler instead of foo.resources

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Mar 3 18:43:55 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gehossafats at netmdc.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81028

--- shadow/81028	2007-03-03 18:43:55.000000000 -0500
+++ shadow/81028.tmp.23060	2007-03-03 18:43:55.000000000 -0500
@@ -0,0 +1,89 @@
+Bug#: 81028
+Product: Mono Tasks
+Version: 0%
+OS: 
+OS Details: GNU/Linux i686 2.6.18-4-k7
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Wishlist
+Component: Build
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gehossafats at netmdc.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Summary: foo.resx is passed to compiler instead of foo.resources
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:Build fails to pass proper resource name to gmcs
+
+Steps to reproduce the problem:
+1. To a solution, add a resource under resources:  eg. foo.resx
+2. add appropriate code to access resource.
+3. compile solution.
+
+Actual Results:
+When build begins, resgen2 is called to generate the resource file (for
+example foo.resx compiles to foo.resource)(no failures)
+
+Then the mono compiler is called with a response file.
+In the response file passed to gmcs, resource is passed as foo.resx file
+instead of the resgen2 generated file foo.resources.
+
+Application compiles.
+
+Application execution crashes on start.
+
+Unhandled Exception: System.Reflection.TargetInvocationException: Exception
+has been thrown by the target of an invocation. --->
+System.ArgumentException: Stream is not a valid .resources file!
+  at System.Resources.ResourceReader.ReadHeaders () [0x00017] in
+/build/buildd/mono-1.2.3.1/mcs/class/corlib/System.Resources/ResourceReader.cs:119
+
+  at System.Resources.ResourceReader..ctor (System.IO.Stream stream)
+[0x00055] in
+/build/buildd/mono-1.2.3.1/mcs/class/corlib/System.Resources/ResourceReader.cs:93
+
+  at System.Resources.ResourceSet..ctor (System.IO.Stream stream) [0x0002e]
+in
+/build/buildd/mono-1.2.3.1/mcs/class/corlib/System.Resources/ResourceSet.cs:73 
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native)
+System.Reflection.MonoCMethod:InternalInvoke (object,object[])
+  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00040] in
+/build/buildd/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:373
+--- End of inner exception stack trace ---
+
+
+
+
+Expected Results:
+Build calls resgen2 for compiling foo.resx. 
+foo.resources is added as resource in response file sent to gmcs
+
+application compiles.
+
+Proper execution of application.
+
+How often does this happen? 
+always
+
+Additional Information:
+Hand modifying the response file resource line from:
+
+"/res:/home/steve/src/fooproject/foo.resx,fooproject.foo.resources"
+
+to:
+"/res:/home/steve/src/fooproject/foo.resources,fooproject.foo.resources"
+
+and then recompiling from command line results in working application
+fooproject.
+
+S.Podhajecki
+
+Debian GNU/Linux
+Monodevelop 0.13, Mono 1.2.3.1


More information about the mono-bugs mailing list