All-

 

When compiling a .resx file during a build I’m receiving the following exception:

 

                  [csc] Compiling 21 files to C:\Daytona.VSS\Development/Components/../Binaries/Client/Hierarchy.Presentation.dll.

                                    error: Invalid ResX input.

                                    error: Specific exception: SerializationException  Message: Invalid ResX input. --->

 SerializationException: Cannot find the assembly Type.Shared, Version=8.0.28.0, Culture=neutral, PublicKeyToken=null.

                                    2 error(s).

 

                        BUILD FAILED

 

                        External Program Failed: C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin\resgen.

exe (return code was -1163019603)

 

                        Total time: 2.3 seconds.

 

The ‘Type.Shared’ is a custom type that has been previously compiled to a different directory.  The type is refererenced.   Here’s the build action:

 

<csc target="library" debug="${build.debug}" output="${project.bindir}/Client/${current.project.prefix}.dll">

                        <sources basedir="${current.project.dir}" failonempty="true">

                                                                                                <includes name="*.cs" />

                         </sources>

                         <references basedir="${project.bindir}">

                                     <includes name="ClientServer/Type.Shared.dll" />

                        </references>

                        <resources basedir="${current.project.dir}">

                                    <includes name="*.resx" />

                                    <includes name="*.bmp" />

                        </resources>

                        <arg value="/nowarn:1591"></arg>

            </csc>

 

I would expect that since I’m referencing the assembly in the CSC task that this information would be passed to the resgen task.  Any ideas?  I’m using Nant 0.84

 

Thanks!

James

Reply via email to