[Mono-bugs] [Bug 384180] New: MWF SWF2k5. csproj ignores namespace on embedding resources

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 27 09:04:15 EDT 2008


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


           Summary: MWF SWF2k5.csproj ignores namespace on embedding
                    resources
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


An app with a PropertyGrid fails with a resource-not-found exception on a
bitmap when using MWF built with SWF2k5.csproj.  Comparing the assembly with
the gmcs-built equivalent shows that all of the resources with namespace paths
simply have the path part missing in the VS built version.

The following change to the project file build script fixes this.  Apparently
the "CustomToolNameSpace" element has no effect in this case, and according to
[1] the full name should simply be placed in the normal "LogicalName" element.

[1]
http://channel9.msdn.com/wiki/default.aspx/MSBuild.OverrideVisualStudioResourceNamingRules 

[[
Index: build-csproj2k5
===================================================================
--- build-csproj2k5     (revision 101725)
+++ build-csproj2k5     (working copy)
@@ -231,10 +231,11 @@
        INCLUDE=`echo $INCLUDE | sed 's/\//\\\\/'`

        echo "    <EmbeddedResource Include=\"$INCLUDE\">"
-       echo "      <LogicalName>$LOGICALNAME</LogicalName>"
        if test "x$CUSTOMTOOLNAMESPACE" != "x"; then
-           echo "     
<CustomToolNameSpace>$CUSTOMTOOLNAMESPACE</CustomToolNameSpace>"
+           echo "      <LogicalName>$CUSTOMTOOLNAMESPACE</LogicalName>"
+       else
+           echo "      <LogicalName>$LOGICALNAME</LogicalName>"
        fi
        echo "    </EmbeddedResource>"
   done
echo "  </ItemGroup>"
]]


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


More information about the mono-bugs mailing list