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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs