Hi,

I'm using copy and filterchains to generate stub project layouts for visual 
studio.

VisualStudio 2005, solution files start with the BOM, 0xefbbbf, and if the 
BOM's not there, visual studio ignores the file (unhelpful!)

My task looks like this...

                <copy file="${templatedir}\TemplateRawInput.sln" 
                        tofile="vanilla-${project.basename}.sln"
                        inputencoding="utf-8"
                        >
                        <filterchain>
                                <replacetokens>
                                        <token key="COREGUID" 
value="${Core.GUID}"/>
                                        <token key="TESTSGUID" 
value="${Tests.GUID}"/>
                                </replacetokens>
                        </filterchain>
                </copy>


If I don't use filterchains, the BOM is always preserved, and visual studio 
will open the file (well, try to, the @COREGUID@ values tend to make it very 
upset) but as soon as I add the filterchains, the BOM is stripped from the 
output. This is regardless of whether I specify inputencoding, outputencoding, 
neither or both.

I'm using NAnt 0.85 (Build 0.85.2344.0; rc4; 02-Jun-06)

Cheers,
Karl P
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to