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

 

Reply via email to