> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 10, 2004 9:30 AM
> Subject: RE: [Nant-users] Path length problem with resgen
>

> Thanks for that Brian,
>
> I have tried shortening my path environment variable to the bare minimum
> (about 40 chars) but it makes no difference.  I have also moved the source
> to the shortest path I can get (without changing names - it's a BIG
project,
> around 1000 source files) and again it makes no difference.  I think I
have
> tracked the cause down to a change made to the ResGenTask.cs (in
> NAnt.DotNet.Tasks file on 3rd July 2004.  This is either directly or
> indirectly causing me the problem, but I haven't had the time to try to
work
> through the change or what it does yet.  Builds before this work fine.
>
> I don't have access to CVS, but does anyone know what the change made was
> for?  This may give some pointers as to what is wrong with my build and
what
> I need to change to fix it.

The change is required in order to support resx files that reference types
in non-system assemblies.

However, resgen.exe (prior to .NET 2.0) does not support a command line
option for specifying assembly references, therefor I implemented a
workaround, meaning : copy resgen.exe and all referenced assemblies to a
temporary directory, and launch resgen from there.

The problem in your case might be that the path of that temporary directory
that we create exceeds the max. path length. The ensure uniqueness of that
temp directory, we combine the temp path with a Guid :

Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N",
CultureInfo.InvariantCulture))

Can you add some debug statements (Console.WriteLine("...") or
Log(Level.Info, "...")) to the resgen task (or debug NAnt) to find out where
and why it fails ?

Gert

 -----Original Message-----
From: Brian Yeo [mailto:[EMAIL PROTECTED]
Sent: 09 August 2004 07:50
To: Bill Martin
Cc: [EMAIL PROTECTED]
Subject: [Nant-users] Path length problem with resgen

Bill,

It seems that your total path length may have exceeded the limit of 255
chars. One alternative is -
when the src files are extracted to your local drive, consider fiddling the
file/path name by making certain name shorter.

eg Microsoft.ApplicationBlocks.ConfigurationManagement (CS) to config mgt.

.Net file convention seems to be longer than the old ways of naming files.
If you keep the file name to less than 255 chars, the build should work.

Hope this info helps.

Regards,
Brian Yeo

BUILD FAILED

            Error creating FileSet.:
            NAnt.Core.BuildException: Error creating FileSet. --->
System.IO.PathTooLongException: The path is too long after being fully
qualified.  Make sure path is less than 260 characters.
               at System.IO.Path.nGetFullPathHelper(String path, Char[]
invalidPathChars, Char[] whitespaceChars, Char directorySeparator, Char
altDirectorySeparator, Boolean fullCheck, String& newPath)

_________________________________________________________________
In the market for a car? Buy, sell or browse at CarPoint:
http://server-au.imrworldwide.com/cgi-bin/b?cg=link&ci=ninemsn&tu=http://car
point.ninemsn.com.au?refid=hotmail_tagline



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users




______________________________________________________________

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the
person or organisation to
whom it is addressed.  Its contents are confidential and may be protected in
law.  Unauthorised use,
 copying or disclosure of any of it may be unlawful.  If you are not the
intended recipient, please
contact us immediately.

The contents of any attachments in this e-mail may contain software viruses,
which could damage your
own computer system.  While Marlborough Stirling has taken every reasonable
precaution to minimise
this risk, we cannot accept liability for any damage, which you sustain as a
result of software
viruses.  You should carry out your own virus checking procedure before
opening any attachment.


Marlborough Stirling plc, Registered in England and Wales
Registered No. 3008820,
Jessop House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000     Fax: 01242 547100
http://www.marlborough-stirling.com



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to