Bugs item #921343, was opened at 2004-03-22 15:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=921343&group_id=31650
Category: None
Group: cvs
Status: Open
Resolution: None
Priority: 5
Submitted By: Rob Collyer (wyldeling)
Assigned to: Nobody/Anonymous (nobody)
Summary: CSC improperly handles licx files
Initial Comment:
Currently, the ResourceFileSet makes the distinction
between Resx files and Non-Resx files, and the licx files
are lumped into the Non-Resx files. Unfortunately, licx
files must, also, be compiled similar to the resx files. (As
a user, either I should be able to compile everything
using the csc task -- as it currently works for resx files,
or I can compile just the cs files in the csc task after
precompiling the resources. This should be an all or
nothing proposition.) Additionally, due to the
aforementioned distinction in the code, I can not easily
add such a feature.
(It is interesting to note that most of the code in the
resx section of the compile resources section section is
repeated just below it for the Non-Resx portion.) So,
to "fix" this bug I would do something like the following
pseudo-code:
foreach( Resource resource in ResourceList )
{
if ( resx or licx )
{
tmpResourcePath = Path.ChangeExtension(fileName,
(resx) ? ".resources":".liscences");
compiledResourceFiles.Add(tmpResourcePath);
if (resx) {
CompileResxResource(new FileInfo(fileName), new FileInfo
(tmpResourcePath));
}
else
{
CompileLicxResource(new FileInfo(fileName), new FileInfo
(tmpResourcePath));
}
} else
{
tmpResourcePath = resource.filename;
}
// the rest of the code using tmpResourcePath as the
// for the filename as ti is generic
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=921343&group_id=31650
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers