Hi Gert,
Thanks, that works. I'd tried that without the basedir previously so that must
have been what was missing!
Regards,
K.
----- Original Message ----
From: Gert Driesen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]; nant-users@lists.sourceforge.net
Sent: Monday, 18 August, 2008 5:23:43 PM
Subject: RE: [NAnt-users] csc and
System.Resources.MissingManifestResourceException
Hi,
You could’ve used this one:
<resources prefix="MyProject" dynamicprefix=”true”
basedir=”${source.dir}/MyProject“>
<include name="**/*.resx"/>
</resources>
Hope this helps,
Gert
From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: maandag 18 augustus 2008 17:33
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] csc and System.Resources.MissingManifestResourceException
Hi,
I've been trying to create an msi for my project using NAnt and I've
successfully managed to create the msi and then install my project from it. My
project runs but then comes up with a
System.Resources.MissingManifestResourceException (Could not find any resources
appropriate for the specified culture or the neutral culture. Make sure
"MyProject.Properties.Resources.resources" was correctly embedded or linked
into assembly "MyProject" at compile time, or that all the satellite assemblies
required are loadable and fully signed.)
when I try to open a particular dialog. I managed to find this solution posted
by Gert a while ago
(http://www.mail-archive.com/nant-users@lists.sourceforge.net/msg11028.html)
but it doesn't work for me. I've tried various different things but each time
when I ran Ildasm, it still had the wrong name for the
MyProject.Properties.Resources.resources file.
I tried
<resources prefix="MyProject">
<include name="${source.dir}/MyProject/**/*.resx"/>
</resources>
but it gave me "MyProject.Resources.resources".
So I tried
<resources basedir="${source.dir}/MyProject">
<include name="**/*.resx"/>
</resources>
but it gave me "Resources.resources".
I ended up having to work around it by doing the following:
<resources basedir="${source.dir}/MyProject/GUI">
<include name="**/*.resx"/>
</resources>
<resources basedir="${source.dir}/MyProject/Properties"
prefix="MyProject.Properties">
<include name="*.resx"/>
</resources>
To me, this seems like there's a bug somewhere in csc - has anyone else
encountered this?
Regards,
K.
________________________________
Win a MacBook Air or iPod touch with Yahoo!7- Find out more.
Win a MacBook Air or iPod touch with Yahoo!7.
http://au.docs.yahoo.com/homepageset
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users