Gert,

 

First off, there is no ‘en’ directory in the ${builddir} (or any other place that I could find). I did find ErrorLog.ErrorResources.resources in the obj\Debug directory. What if this is not what I want to do? I want the resources to be ‘embedded’. This seems to be the default for Visual Studio. If I look in the project I see:

               <File

                    RelPath = "ErrorResources.resx"

                    BuildAction = "EmbeddedResource"

                />

I would like to know how to mimic this behavior with NAnt. I would like to install just the assembly into the GAC. This assembly has other resources (ErrorLog.WebMessages.resources for example) and I would rather not install each of the resources in the GAC. I do not have to do this when building with Visual Studio. It seems that there should be a way to ‘embed’ these resource in the assembly.

 

One more comment. I noticed that in the error the file ErrorLog.resources was being looked for while the only file that I found was ErrorLog.ErrorResources.resources. Could the ‘dynamicprefix’ that I am using be wrong?

 

Thank you.

 

Kevin

 


From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 18, 2005 12:37 AM
To: Burton, Kevin; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] Resources

 

Kevin,

 

Apparently you had localized resources (for the "en" culture) for which NAnt automatically created a satellite assembly (check ${builddir}/en/ErrorLog.resources).

 

You should also install that satellite assembly in the GAC.

 

Hope this helps,

 

Gert

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton, Kevin
Sent: dinsdag 18 januari 2005 3:46
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Resources

I am compiling an assembly using the following task:

 

                <csc target="library" output="${build.dir}/ErrorLog.dll" debug="true">

                    <arg value="/define:USEKEYCONTAINER" />

                    <arg value="/define:DEBUG" />

                    <arg value="/define:TRACE" />

                    <sources>

                        <include name="*.cs"/>

                    </sources>

                    <resources dynamicprefix="true" prefix="ErrorLog">

                        <include name="*.resx" />

                    </resources>

                    <references basedir="${build.dir}" />

                </csc>

 

The problem is that when I make a remoting call to the service that supports the remoting object I get the error below. The error indicates that it is looking for ErrorLog.resources which I was assuming was in ErrorLog.dll which is in the GAC. How do I make sure that the resources are embedded in the assembly?

 

Thank you.

 

Kevin

 

*** Assembly Binder Log Entry  (1/17/2005 @ 1:42:30 PM) ***
 
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
 
Assembly manager loaded from:  C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable  C:\Program Files\Visa\ApplicationServer\ApplicationServer.exe
--- A detailed error log follows. 
 
=== Pre-bind state information ===
LOG: DisplayName = ErrorLog.resources, Version=2.7.2.0, Culture=en, PublicKeyToken=53d3d319953ae13c
 (Fully-specified)
LOG: Appbase = C:\Program Files\Visa\ApplicationServer\
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : ErrorLog, Version=2.7.2.0, Culture=neutral, PublicKeyToken=53d3d319953ae13c.
===
 
LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: ErrorLog.resources, Version=2.7.2.0, Culture=en, PublicKeyToken=53d3d319953ae13c
LOG: Cache Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources/ErrorLog.resources.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources/ErrorLog.resources.EXE.
LOG: All probing URLs attempted and failed.

 

Reply via email to