[Mono-bugs] [Bug 50752][Nor] Changed - Problems on embedding resource files from subdirectories to assembly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Jan 2004 03:18:09 -0500 (EST)
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 projects@saring.de.
http://bugzilla.ximian.com/show_bug.cgi?id=50752
--- shadow/50752 2004-01-19 16:46:18.000000000 -0500
+++ shadow/50752.tmp.17103 2004-01-20 03:18:09.000000000 -0500
@@ -38,6 +38,38 @@
------- Additional Comments From bmaurer@users.sf.net 2004-01-19 16:46 -------
I cant repro the replacing with '.' thing on my csc. It just uses the
name w/o the path on mine...
But we should do SOMETHING
+
+------- Additional Comments From projects@saring.de 2004-01-20 03:18 -------
+I've got the "." delimiter (as replacement of "/"), when I use the
+dynamicprefix="true" option in my Nant build script. Below you can see
+the example. I don't know what the appropriate command line switch for
+csc is.
+
+So maybe Mono (msc) should should always remove the leading
+directories of resource files or msc should get an appropriate switch
+too...
+
+<csc target="exe" output="${app.name}" debug="${debug}">
+ <sources>
+ <includes name="${src.dir}/**/*.cs"/>
+ </sources>
+ <references failonempty="true">
+ <includes name="${mono.dir}/lib/glib-sharp.dll"/>
+ <includes name="${mono.dir}/lib/gdk-sharp.dll"/>
+ <includes name="${mono.dir}/lib/atk-sharp.dll"/>
+ <includes name="${mono.dir}/lib/pango-sharp.dll"/>
+ <includes name="${mono.dir}/lib/gtk-sharp.dll"/>
+ <includes name="${mono.dir}/lib/glade-sharp.dll"/>
+ </references>
+ <resources dynamicprefix="true" basedir=".">
+ <includes name="${resource.dir}/sportstracker.glade" />
+ <includes name="${resource.dir}/st-logo.png" />
+ <includes name="${xml.dir}/exercises.xsd" />
+ <includes name="${xml.dir}/sport-types.xsd" />
+ </resources>
+</csc>
+
+Hope this helps ...