I am trying to use the copy filter.  I am defining a new task and trying to replace my @version@ in my assembly.cs file with my generated version.  I am copying it to assmblyinfo.txt not to overwrite it. 

 

I get the following error:

invalid element <filterset>. Unknown task or datatype.

 

Here is the part of my build file that I am using.

 

<target name="test">

        <filterset begintoken="@" endtoken="@">

            <filter token="version" value="1.0.0.1" />

        </filterset>

        <copy file="build\assemblyinfo.cs" tofile="build\assemblyinfo.txt" todir="build" overwrite="true" filtering="true" />

    </target>

 

 

Any suggestions would be greatly appreciated.

 

 

Thanks

Noah Davidson

Reply via email to