Populate the FileSet.Includes directly with the full path to each file. I'm
assuming that when running the Scan that it will return them in the order
added.
-Original Message-
From: Griffin Caprio [mailto:[EMAIL PROTECTED]
Sent: Monday, May 07, 2007 6:43 PM
To: Richard Gavel
Cc: nant-user
Ok, thanks to everyone for their help. Here is the final Execute
method for the task that actually works:
protected override void ExecuteTask()
{
FileSet fileset = Project.DataTypeReferences
[_filesetName] as FileSet;
if (fileset != null)
{
Yes, but regardless of which way I get the fileset, I'm still not
having luck replacing the fileset with my new sorted one.
Griffin Caprio
312.371.3869
http://blog.1530technologies.com
On May 7, 2007, at 6:11 PM, Alan Guedeney wrote:
>
> There was an example piece already provide in the emai
There was an example piece already provide in the email listing a few days ago
...
// Pass fileset refid as a string in your task
public FileSet GetFileSetByID(String pID){ if (pID.Length > 0) {
DataTypeBase dtb = this.Project.DataTypeReferences[pID]; return
(FileSet)dtb;}
I can actually get the sorted file names into a StringCollection to
set the FileSet.Asis property to. When i can call FileSet.Scan(),
they would be added to the internal file name list. However, AsIs is
ReadOnly.
Griffin Caprio
312.371.3869
http://blog.1530technologies.com
On May 7, 2
I've been trying that, but now i'm stuck on how to actually get the
the new files names into the new FileSet. I've tried setting
FileSet.IncludesFiles directory, but I can't seem to find the correct
way to create a new instance of the FileSet.IncludesFiles class.
Thoughts?
Griffin
On May
Yeah, i figured out how to do that after i sent the email. EIther
way works for me though. However, no matter which way I pick, i can't
seem to figure out how to save the resulting sorted list as a new
fileset.
Griffin
On May 7, 2007, at 4:39 PM, Richard Gavel wrote:
> The fileset shou
The fileset should not be a build element of the custom task, it should be a
task attribute (just a string property). Within the task, you can resolve
the fileset id to the previously created fileset instance using the
Task.Project.DataTypeReferences property.
-Original Message-
From: Grif
Ok, I've actually figured out how to reference the external fileset
from within my task:
default.build:
Now the question is, since FileSet.FileNames is read only, how can i
output a new fileset?
Griffin Caprio
312.371.3869
http://blog.1530technologies.com
On May 7,
Sabahat,
Try reading some of the NAnt documentation -- it's pretty good and will
answer most of your questions.
An Overview:
http://nant.sourceforge.net/release/latest/help/fundamentals/
For compiling Visual Studio 2003 Solutions:
http://nant.sourceforge.net/release/latest/help/tasks/solution
Richard,
Thanks for your continual help. The below solution seems to have
legs, however, I'm having some problems implementing it. Mainly, I
cannot get the task to reference an existing fileset.
For example:
default.build:
SortFilesetTask.cs:
[TaskName("sort-fileset")]
i'm pretty sure there is a nAntContrib task for this
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rosy Malhotra
Sent: Monday, May 07, 2007 6:10 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] How to compile vdproj or how create setu
Hi All,
Can any body tell how to build .Net project with Nant.
Any help will be appreciated.
Regards,
Sabahat
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
c
I have compile vdproj file. Please tell me how can we do this, with out
having Visual studio installed on my system.
Thanks and Regards,
Rosy Malhotra
**
14 matches
Mail list logo