What version are you running ? What messages do you get ?
OK it looks like there is a problem with the way we're generating prefixes for embedded resources. Assuming you've got the latest NAnt - if you open the dll it built with ildasm and look in the manifest section you will see somthing like these lines :
.mresource public WebApplication1.Global.asax.resources
{
}
.mresource public WebApplication1.WebForm1.aspx.resources
{
}
which should actually be:
.mresource public WebApplication1.Global.resources
{
}
.mresource public WebApplication1.WebForm1.resources
{
}
This is a bug in the way we determine resource name from the matching .cs file - or an inconsistency in the way visual studio matches .resx files to related .cs files. Regardless I've made a patch for this which should be committed early next week ( its Canadian thanksgiving so its a long weekend here ) or sooner if I get time to test it this weekend.
Ian
I am working on a build process for 3 web UIs and 5 web services all written in C#. When I try to compile them using Nant�s csc task, the resources fail to embed correctly. Has anyone tried this and could offer some help?
Sample Nant task that does NOT work:
<!-- Build the project -->
<target name="BuildProject" >
<mkdir dir="${project.builddir}"/>
<mkdir dir="${project.builddir}\Bin"/>
<csc verbose="true" target="library" output="${project.builddir}\Bin\${UI.WebServiceAdmin.AssemblyName}" debug="${debug}" >
<sources>
<includes name="${project.dir}\*.cs" />
</sources>
<references>
<includes name="${project.dir}\Bin\Interop.ActiveDs.dll" />
<includes name="${project.dir}\Bin\MS.IT.Services.CRM.Framework.dll" />
<includes name="${project.dir}\Bin\Microsoft.Web.UI.WebControls.dll" />
</references>
<resources>
<includes name="${project.dir}\*.resx" />
</resources>
</csc>
</target>
Thanks, BC
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
